﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Drawing.Printing;
using System.Collections;
using System.Xml;
using System.IO;
using Saptac.clinic.Service;
using Saptac.BASY.Common.Entity;

namespace BASY
{
    public partial class Form3 : Form
    {
        public Form3()
        {
            InitializeComponent();
            //MessageBox.Show(str);
        }
        BA_SYJBK syjbk = new BA_SYJBK();
        BA_SYYEK syyrk = new BA_SYYEK();
        BA_SYSSK syssk = new BA_SYSSK();
        BA_SYZDK syzdk = new BA_SYZDK();

        #region 成员变量
        //打印页面
        private PrintDocument printDocument = null;

        private int page = 1;
        private double zoom = 0.5;
        private double zoomX = (1 * 1);
        private double zoomY = Convert.ToInt32(1 * 1);
        private const double defaultzoom = 0.5;
        //定义字体
        private Font previewfont = new Font("宋体", 10);//打印预览正文字体
        private Font previewTitlefont = new Font("宋体", 15);//打印预览标题字体
        private Brush brushCellFont = new SolidBrush(Color.Black);

        private Font printfont = new Font("宋体", 13);//打印正文字体
        private Font printBoldfont = new Font("宋体", 13, FontStyle.Bold);//打印正文加粗字体
        private Font previewCommentfont = new Font("宋体", 11, FontStyle.Bold);//备注加粗
        private Font printCommentfont = new Font("宋体", 13, FontStyle.Bold);//备注加粗
        private Font printTitlefont = new Font("宋体", 16);//打印标题字体
        private Font printTitleLargefont = new Font("宋体", 21,FontStyle.Bold);//打印超大标题字体
        Font f = new System.Drawing.Font("宋体", 11);
        //定义画笔
        private Pen framePen = new Pen(Color.Black);
        private Pen drawlinenPen = new Pen(Color.Black);
        private Pen drawchoicePen = new Pen(Color.Black,2);
        //文本
        private string title = null;

        //制表日期
        private string createtime = string.Empty;
        //报表统计日期
        private string statisticalRange = string.Empty;

        //设置打印数据
        private int startPointX = 60;
        private int startPointY = 60;
        private int bstratPointX = 60;
        private int bstratPointY = 2360;
        private int defaultWidth = 840;
        private int defaultCellHeight = 40;

        //调整表格内高度
        private int offestHeight = 1;

        //打印配置
        private double configZoom = 0.00;

        #endregion

        private void FormAndDocumentPaint(Graphics g)
        {
            #region 初始设置
            int titlerowpitch = 60;
            int x = Convert.ToInt32(26 * 40 * zoom);
            int originalX = Convert.ToInt32(startPointX * zoom);
            int originalY = Convert.ToInt32(startPointY * zoom);
            int originalwidth = Convert.ToInt32((defaultWidth - 120) * 2 * zoom);
            int zoomWeight = Convert.ToInt32(20 * zoom);
            int zoomHeight = Convert.ToInt32(defaultCellHeight * zoom);
            int strWidth = (int)(g.MeasureString(title, previewTitlefont).Width);
            int drawX = originalX + this.GetCenter(originalwidth, strWidth);
            #endregion

            //http://192.168.8.3:8092/his/axis/FacadeService?wsdl

            #region 页面展示

            #region 第一行 医疗机构，组织机构代码

            #region 医疗机构
            g.DrawString(/*"医疗机构"*/ syjbk.ZLMC1, printTitlefont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 500) * zoom * zoomX), Convert.ToInt32((startPointY + 0) * zoom * zoomY)));//字符：医疗机构
            g.DrawString("复旦大学附属华山医院", printTitlefont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 750) * zoom * zoomX), Convert.ToInt32((startPointY + 0) * zoom * zoomY)));//标题：机构类别填充
            g.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 700) * zoom * zoomX), Convert.ToInt32((startPointY + 40) * zoom)), new PointF(Convert.ToInt32((startPointX + 1250) * zoom * zoomX), Convert.ToInt32((startPointY + 40) * zoom * zoomY)));//下划线：机构类别填充横线
            #endregion

            #region 组织机构代码
            g.DrawString("（组织机构代码：", printTitlefont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1250) * zoom * zoomX), Convert.ToInt32((startPointY + 0) * zoom * zoomY)));//标题：组织机构代码
            g.DrawString("42500653-9" + ")", printTitlefont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1580) * zoom * zoomX), Convert.ToInt32((startPointY + 0) * zoom * zoomY)));//字符：组织机构代码填充
            g.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 1580) * zoom * zoomX), Convert.ToInt32((startPointY + 40) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 1815) * zoom *zoomX), Convert.ToInt32((startPointY + 40) * zoom * zoomY)));//下划线：组织机构代码填充横线
            #endregion

            #endregion

            #region 第二行 医疗付费方式 标题 住院病案首页

            #region 医疗付费方式
            g.DrawString("医疗付费方式 " + "全自费", printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 0) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch) * zoom * zoomY)));//标题+字符：医疗付费方式
            #endregion

            #region 标题 住院病案首页
            g.DrawString("住院病案首页", printTitleLargefont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 0 + 800) * zoom * zoomX), Convert.ToInt32((startPointY + 0 + titlerowpitch) * zoom * zoomY)));//标题：住院病案首页
            #endregion

            #endregion

            #region 第三行 健康卡号 住院次数 病案号

            #region 健康卡号
            g.DrawString("健康卡号" + syjbk.JKKH1, printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 0) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 2) * zoom * zoomY)));//标题+字符：健康卡号
            #endregion

            #region 住院次数
            g.DrawString("第" + "1" + "次住院", printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 0 + 820) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 2) * zoom * zoomY)));//标题+字符：住院次数
            #endregion

            #region 病案号
            g.DrawString("病案号：" + syjbk.BAHM1, printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 0 + 1550) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 2) * zoom * zoomY)));//标题+字符：病案号+病案号码
            #endregion

            #region 第三行下划线
            g.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 0) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 2) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 1850) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 2) * zoom * zoomY)));//下划线：第三行整体填充横线
            #endregion

            #endregion

            #region 第四行 姓名 性别 出生日期 年龄 国籍

            #region 姓名
            g.DrawString("姓名", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 0) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 3) * zoom * zoomY)));//标题：姓名
            g.DrawString(syjbk.BRXM1, printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 0 + 90) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 3) * zoom * zoomY)));//字符：姓名填充
            g.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 80) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 3) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 300) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 3) * zoom * zoomY)));//下划线：姓名填充横线
            #endregion

            #region 性别
            g.DrawString("性别", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 350) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 3) * zoom * zoomY)));//标题：性别
            g.DrawRectangle(drawlinenPen,Convert.ToInt32((startPointX + 440) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 3) * zoom * zoomY),15,15);//图形：性别方框
            g.DrawString("1.男", printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 490) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 3) * zoom * zoomY)));//标题：性别 1.男
            g.DrawString("2.女", printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 580) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 3) * zoom * zoomY)));//标题：性别 2.女

            #region 性别打勾判定
            if (false)
            {
                DrawingChoice(g, Convert.ToInt32((startPointX + 490) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 3) * zoom * zoomY));//勾：男性
            }
            else
            {
                DrawingChoice(g, Convert.ToInt32((startPointX + 580) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 3) * zoom * zoomY));//勾：女性
            }
            #endregion

            #endregion

            #region 出生日期
            g.DrawString("出生日期", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 700) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 3) * zoom * zoomY)));//标题：出生日期
            g.DrawString(syjbk.CSNY1, printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 900) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 3) * zoom * zoomY)));//字符：出生日期填充
            g.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 850) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 3) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 1120) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 3) * zoom * zoomY)));//下划线：出生日期填充横线
            #endregion

            #region 年龄
            g.DrawString("年龄", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1200) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 3) * zoom * zoomY)));//标题：年龄
            g.DrawString(syjbk.XSNL1.ToString(), printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1340) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 3) * zoom * zoomY)));//字符：年龄填充
            g.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 1320) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 3) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 1440) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 3) * zoom * zoomY)));//下划线：年龄填充横线
            #endregion

            #region 国籍
            g.DrawString("国籍", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1540) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 3) * zoom * zoomY)));//标题：国籍
            g.DrawString(syjbk.GJDM1, printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1640) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 3) * zoom * zoomY)));//字符：国籍填充
            g.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 1620) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 3) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 1800) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 3) * zoom * zoomY)));//下划线：国籍填充横线
            #endregion

            #endregion

            #region 第五行 年龄不足一周岁 新生儿出生体重 新生儿入院体重

            #region 年龄不足一周岁
            g.DrawString("(年龄不足一周岁的)", printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 0) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 4) * zoom * zoomY)));//标题：（年龄不足一周岁的）
            g.DrawString("年龄", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 350) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 4) * zoom * zoomY)));//标题：年龄
            g.DrawString(syjbk.NL_BABY1, printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 0 + 480) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 4) * zoom * zoomY)));//字符：年龄填充
            g.DrawString("月", printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 0 + 550) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 4) * zoom * zoomY)));//标题：月
            g.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 450) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 4) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 550) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 4) * zoom * zoomY)));//下划线：年龄不足一周岁填充横线
            #endregion

            #region 新生儿出生体重
            g.DrawString("新生儿出生体重", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 680) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 4) * zoom * zoomY)));//标题：新生儿出生体重
            g.DrawString(syjbk.XSECSTZ1, printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 0 + 980) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 4) * zoom * zoomY)));//字符：体重填充
            g.DrawString("克", printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 0 + 1100) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 4) * zoom * zoomY)));//标题：克
            g.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 950) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 4) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 1100) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 4) * zoom * zoomY)));//下划线：新生儿出生体重填充横线
            #endregion

            #region 新生儿入院体重
            g.DrawString("新生儿入院体重", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1350) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 4) * zoom * zoomY)));//标题：新生儿入院体重
            g.DrawString(syjbk.XSERYTZ1, printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 0 + 1650) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 4) * zoom * zoomY)));//字符：体重填充
            g.DrawString("克", printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 0 + 1780) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 4) * zoom * zoomY)));//标题：克
            g.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 1590) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 4) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 1780) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 4) * zoom * zoomY)));//下划线：新生儿入院体重填充横线
            #endregion

            #endregion

            #region 第六行 出生地 籍贯 民族

            #region 出生地
            g.DrawString("出生地", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 0) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 5) * zoom * zoomY)));//标题：出生地
            g.DrawString(syjbk.SFDM1, printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 0 + 120) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 5) * zoom * zoomY)));//字符：出生地填充
            g.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 120) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 5) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 1300) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 5) * zoom * zoomY)));//下划线：出生地填充横线
            #endregion

            #region 籍贯
            g.DrawString("籍贯", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1330) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 5) * zoom * zoomY)));//标题：籍贯
            g.DrawString(syjbk.JGSSDM1, printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1430) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 5) * zoom * zoomY)));//字符：籍贯填充
            g.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 1410) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 5) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 1580) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 5) * zoom * zoomY)));//下划线：籍贯填充横线
            #endregion

            #region 民族
            g.DrawString("民族", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1600) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 5) * zoom * zoomY)));//标题：民族
            g.DrawString(syjbk.MZDM1, printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1700) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 5) * zoom * zoomY)));//字符：民族填充
            g.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 1680) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 5) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 1820) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 5) * zoom * zoomY)));//下划线：民族填充横线
            #endregion

            #endregion

            #region 第七行 身份证号 职业 婚姻

            #region 身份证号
            g.DrawString("身份证号", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 0) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 6) * zoom * zoomY)));//标题：身份证号
            g.DrawString(syjbk.SFZH1, printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 0 + 170) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 6) * zoom * zoomY)));//字符：身份证号填充
            g.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 155) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 6) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 530) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 6) * zoom * zoomY)));//下划线：身份证号填充横线
            #endregion

            #region 职业
            g.DrawString("职业", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 560) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 6) * zoom * zoomY)));//标题：职业
            g.DrawString(syjbk.ZYDM1, printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 0 + 660) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 6) * zoom * zoomY)));//字符：职业填充
            g.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 650) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 6) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 900) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 6) * zoom * zoomY)));//下划线：职业填充横线
            #endregion

            #region 婚姻
            g.DrawString("婚姻", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 950) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 6) * zoom * zoomY)));//标题：婚姻
            g.DrawRectangle(drawlinenPen, Convert.ToInt32((startPointX + 1080) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 6) * zoom * zoomY), 15, 15);//图形：婚姻方框
            string HYZKDM="";
            g.DrawString("1.未婚", printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1150) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 6) * zoom * zoomY)));//标题：1.未婚
            g.DrawString("2.已婚", printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1290) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 6) * zoom * zoomY)));//标题：2.已婚
            g.DrawString("3.丧偶", printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1430) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 6) * zoom * zoomY)));//标题：3.丧偶
            g.DrawString("4.离婚", printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1570) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 6) * zoom * zoomY)));//标题：4.离婚
            g.DrawString("9.其他", printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1710) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 6) * zoom * zoomY)));//标题：9.其他

            switch(syjbk.HYZK1)
            {
                case "未婚":
                    HYZKDM = "1";
                    break;
                case "已婚":
                    HYZKDM = "2";
                    break;
                case "丧偶":
                    HYZKDM = "3";
                    break;
                case "离婚":
                    HYZKDM = "4";
                    break;
                case "其他":
                    HYZKDM = "9";
                    break;
                default:
                    HYZKDM = "9";
                    break;
             }

            g.DrawString(HYZKDM, printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1080) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 6) * zoom * zoomY)));//填充内容：婚姻
            #endregion

            #endregion

            #region 第八行 现住址 现住址电话 现住址邮编

            #region 现住址
            g.DrawString("现住址", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 0) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 7) * zoom * zoomY)));//标题：现住址
            g.DrawString(syjbk.XZZ1, printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 0 + 120) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 7) * zoom * zoomY)));//字符：现住址填充
            g.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 155) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 7) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 1300) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 7) * zoom * zoomY)));//下划线：现住址填充横线
            #endregion

            #region 现住址电话
            g.DrawString("电话", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1330) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 7) * zoom * zoomY)));//标题：现住址电话
            g.DrawString(syjbk.XZZDH1, printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1430) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 7) * zoom * zoomY)));//字符：现住址电话填充
            g.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 1410) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 7) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 1580) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 7) * zoom * zoomY)));//下划线：现住址电话填充横线
            #endregion

            #region 现住址邮编
            g.DrawString("邮编", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1600) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 7) * zoom * zoomY)));//标题：现住址邮编
            g.DrawString(syjbk.XZZYB1, printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1700) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 7) * zoom * zoomY)));//字符：现住址邮编填充
            g.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 1680) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 7) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 1820) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 7) * zoom * zoomY)));//下划线：现住址邮编填充横线
            #endregion

            #endregion

            #region 第九行 户口地址 /*户口电话*/ 户口邮编

            #region 户口住址
            g.DrawString("户口住址", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 0) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 8) * zoom * zoomY)));//标题：户口住址
            g.DrawString(syjbk.HKDZ1, printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 0 + 150) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 8) * zoom * zoomY)));//字符：户口地址填充
            g.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 145) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 8) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + /*+ 1300 */ 1580) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 8) * zoom * zoomY)));//下划线：户口住址填充横线
            #endregion

            #region /*户口电话*/
            //g.DrawString("电话", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1330) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 8) * zoom * zoomY)));//标题：户口住址电话
            //g.DrawString("64362222", printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1430) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 8) * zoom * zoomY)));//字符：户口住址电话填充
            //g.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 1410) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 8) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 1580) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 8) * zoom * zoomY)));//下划线：户口住址电话填充横线
            #endregion

            #region 户口邮编
            g.DrawString("邮编", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1600) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 8) * zoom * zoomY)));//标题：户口住址邮编
            g.DrawString(syjbk.HKYB1, printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1700) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 8) * zoom * zoomY)));//字符：户口住址邮编填充
            g.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 1680) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 8) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 1820) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 8) * zoom * zoomY)));//下划线：户口住址邮编填充横线
            #endregion

            #endregion

            #region 第十行 工作单位及地址 单位电话 邮编

            #region 工作单位及地址
            g.DrawString("工作单位及地址", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 0) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 9) * zoom * zoomY)));//标题：工作单位及地址
            g.DrawString(syjbk.GZDW1+syjbk.DWDZ1, printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 0 + 260) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 9) * zoom * zoomY)));//字符：工作单位住址填充
            g.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 250) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 9) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 1250) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 9) * zoom * zoomY)));//下划线：工作单位填充横线
            #endregion

            #region 工作单位电话
            g.DrawString("单位电话", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1260) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 9) * zoom * zoomY)));//标题：工作单位电话
            g.DrawString(syjbk.DWDH1, printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1430) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 9) * zoom * zoomY)));//字符：工作单位电话填充
            g.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 1420) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 9) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 1580) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 9) * zoom * zoomY)));//下划线：工作单位电话填充横线
            #endregion

            #region 工作单位邮编
            g.DrawString("邮编", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1600) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 9) * zoom * zoomY)));//标题：工作单位邮编
            g.DrawString(syjbk.DWYB1, printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1700) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 9) * zoom * zoomY)));//字符：工作单位邮编填充
            g.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 1680) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 9) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 1820) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 9) * zoom * zoomY)));//下划线：工作单位邮编填充横线
            #endregion
            
            #endregion

            #region 第十一行 联系人姓名 联系人关系 联系人地址 联系人电话

            #region 联系人姓名
            g.DrawString("联系人姓名", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 0) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 10) * zoom * zoomY)));//标题：联系人姓名
            g.DrawString(syjbk.LXRM1, printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 0 + 210) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 10) * zoom * zoomY)));//字符：联系人姓名填充
            g.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 200) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 10) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 380) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 10) * zoom * zoomY)));//下划线：联系人姓名填充横线
            #endregion

            #region 联系人关系
            g.DrawString("关系", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 410) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 10) * zoom * zoomY)));//标题：联系人关系
            g.DrawString(syjbk.LXGX1, printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 0 + 490) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 10) * zoom * zoomY)));//字符：联系人关系填充
            g.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 480) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 10) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 650) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 10) * zoom * zoomY)));//下划线：联系人关系填充横线
            #endregion

            #region 联系人地址
            g.DrawString("地址", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 680) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 10) * zoom * zoomY)));//标题：联系人地址
            g.DrawString(syjbk.LXDZ1, printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 760) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 10) * zoom * zoomY)));//字符：联系人地址填充
            g.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 750) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 10) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 1530) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 10) * zoom * zoomY)));//下划线：联系人地址填充横线
            #endregion

            #region 联系人电话
            g.DrawString("电话", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1550) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 10) * zoom * zoomY)));//标题：联系人电话
            g.DrawString(syjbk.LXDH1, printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1650) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 10) * zoom * zoomY)));//字符：联系人电话填充
            g.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 1630) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 10) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 1820) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 10) * zoom * zoomY)));//下划线：联系人电话填充横线
            #endregion

            #endregion

            #region 第十二行 入院途径

            #region 入院途径
            g.DrawString("入院途径", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 0) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 11) * zoom * zoomY)));//标题：入院途径
            g.DrawRectangle(drawlinenPen, Convert.ToInt32((startPointX + 230) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 11) * zoom * zoomY), 15, 15);//图形：入院途径方框
            g.DrawString("1.急症", printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 300) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 11) * zoom * zoomY)));//标题：1.急症
            g.DrawString("2.门诊", printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 440) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 11) * zoom * zoomY)));//标题：2.门诊
            g.DrawString("3.其他医疗机构转入", printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 580) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 11) * zoom * zoomY)));//标题：3.其他医疗机构转入
            g.DrawString("9.其他", printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 920) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 11) * zoom * zoomY)));//标题：9.其他

            string RYTJDM = "";
            switch (syjbk.HYZK1)
            {
                case "急症":
                    HYZKDM = "1";
                    break;
                case "门诊":
                    HYZKDM = "2";
                    break;
                case "其他医疗机构转入":
                    HYZKDM = "3";
                    break;
                case "其他":
                    HYZKDM = "9";
                    break;
                default:
                    HYZKDM = "9";
                    break;
            }
            g.DrawString(HYZKDM, printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 230) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 11) * zoom * zoomY)));//字符：入院途径
            #endregion

            #endregion

            #region 第十三行 入院时间 入院后确诊日期

            #region 入院时间
            g.DrawString("入院时间：", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 0) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 12) * zoom * zoomY)));//标题：入院时间
            g.DrawString(syjbk.RYRQ1, printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 200) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 12) * zoom * zoomY)));//字符：入院时间
            //DateTimePicker DTPRYSJ = new DateTimePicker();//入院时间创建控件
            //DTPRYSJ.Location = new Point(Convert.ToInt32((startPointX + 230) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 12) * zoom * zoomY));
            //DTPRYSJ.Size = new Size(150, 60);
            //DTPRYSJ.CalendarTitleForeColor = Color.Red;
            //panel1.Controls.Add(DTPRYSJ);
            //this.Controls.Add(DTPRYSJ);
            #endregion

            #region 入院后确诊日期
            g.DrawString("入院后确诊时间", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1000) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 12) * zoom * zoomY)));//标题：入院后确诊时间
            g.DrawString(syjbk.QZRQ1, printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1200) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 12) * zoom * zoomY)));//字符：入院后确诊时间
            //DateTimePicker DTPQZRQ = new DateTimePicker();//入院后确诊时间创建控件
            //DTPQZRQ.Location = new Point(Convert.ToInt32((startPointX + 1430) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 12) * zoom * zoomY));
            //DTPQZRQ.Size = new Size(150, 60);
            //DTPQZRQ.CalendarTitleForeColor = Color.Red;
            //panel1.Controls.Add(DTPQZRQ);
            #endregion

            #endregion

            #region 第十四行 入院科别 病房 转科科别

            #region 入院科别
            g.DrawString("入院科别", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 0) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 13) * zoom * zoomY)));//标题：入院科别
            g.DrawString(syjbk.RYKS1, printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 0 + 190) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 13) * zoom * zoomY)));//字符：入院科别填充
            g.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 170) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 13) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 400) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 13) * zoom * zoomY)));//下划线：入院科别填充横线
            #endregion

            #region 病房
            g.DrawString("病房", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 430) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 13) * zoom * zoomY)));//标题：病房
            g.DrawString(syjbk.RYBQ1, printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 0 + 540) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 13) * zoom * zoomY)));//字符：病房填充
            g.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 520) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 13) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 820) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 13) * zoom * zoomY)));//下划线：病房填充横线
            #endregion

            #region 转科科别
            g.DrawString("转科科别", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 850) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 13) * zoom * zoomY)));//标题：转科科别
            g.DrawString(syjbk.ZKKS1, printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 0 + 1040) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 13) * zoom * zoomY)));//字符：转科科别填充
            g.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 1020) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 13) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 1820) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 13) * zoom * zoomY)));//下划线：转科科别填充横线
            #endregion

            #endregion

            #region 第十五行 出院时间 出院科别 病房 实际住院天数

            #region 出院时间
            g.DrawString("出院时间", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 0) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 14) * zoom * zoomY)));//标题：出院时间
            g.DrawString(syjbk.CYRQ1, printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 0 + 190) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 14) * zoom * zoomY)));//字符：出院时间填充
            g.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 170) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 14) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 550) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 14) * zoom * zoomY)));//下划线：出院时间填充横线
            #endregion

            #region 出院科别
            g.DrawString("出院科别", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 570) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 14) * zoom * zoomY)));//标题：出院科别
            g.DrawString(syjbk.CYKS1, printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 0 + 770) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 14) * zoom * zoomY)));//字符：出院科别填充
            g.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 750) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 14) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 1060) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 14) * zoom * zoomY)));//下划线：出院科别填充横线
            #endregion

            #region 病房
            g.DrawString("病房", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1090) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 14) * zoom * zoomY)));//标题：出院病房
            g.DrawString(syjbk.CYBQ1, printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 0 + 1200) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 14) * zoom * zoomY)));//字符：出院病房填充
            g.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 1180) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 14) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 1460) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 14) * zoom * zoomY)));//下划线：出院病房填充横线
            #endregion

            #region 实际住院天数
            g.DrawString("实际住院", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1480) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 14) * zoom * zoomY)));//标题：实际住院
            g.DrawString(Convert.ToString(syjbk.ZYTS1).ToString(), printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 0 + 1670) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 14) * zoom * zoomY)));//字符：实际住院填充
            g.DrawString("天", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1780) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 14) * zoom * zoomY)));//标题：天
            g.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 1650) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 14) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 1770) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 14) * zoom * zoomY)));//下划线：实际住院填充横线
            #endregion

            #endregion

            #region 第十六行 门（急）诊诊断 疾病编码

            #region 门（急）诊诊断
            g.DrawString("门（急）诊诊断", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 0) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 15) * zoom * zoomY)));//标题：门（急）诊诊断
            g.DrawString("心脏病", printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 0 + 280) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 15) * zoom * zoomY)));//字符：门（急）诊诊断填充
            g.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 260) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 15) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 1200) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 15) * zoom * zoomY)));//下划线：门（急）诊诊断填充横线
            #endregion

            #region 疾病编码
            g.DrawString("疾病编码", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1220) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 15) * zoom * zoomY)));//标题：疾病编码
            g.DrawString("A00.I00", printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 0 + 1410) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 15) * zoom * zoomY)));//字符：疾病编码填充
            g.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 1390) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 15) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 1820) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 15) * zoom * zoomY)));//下划线：疾病编码填充横线
            #endregion

            #endregion

            #region 第十七行至第二十七行 出院诊断 疾病编码 入院情况 出院病情 出院诊断 疾病编码 入院情况 出院病情

            #region 第十七行标题栏
            g.DrawString("出院诊断", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 120) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + 20 + titlerowpitch * 16) * zoom * zoomY)));//标题：左侧出院诊断
            g.DrawString("疾病编码", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 435) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + 20 + titlerowpitch * 16) * zoom * zoomY)));//标题：左侧疾病编码诊断
            g.DrawString("入院情况", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 615) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + 20 + titlerowpitch * 16) * zoom * zoomY)));//标题：左侧入院情况诊断
            g.DrawString("出院情况", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 765) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + 20 + titlerowpitch * 16) * zoom * zoomY)));//标题：左侧出院情况诊断

            g.DrawString("出院诊断", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1035) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + 20 + titlerowpitch * 16) * zoom * zoomY)));//标题：右侧出院诊断
            g.DrawString("疾病编码", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1350) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + 20 + titlerowpitch * 16) * zoom * zoomY)));//标题：右侧疾病编码诊断
            g.DrawString("入院情况", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1530) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + 20 + titlerowpitch * 16) * zoom * zoomY)));//标题：右侧入院情况诊断
            g.DrawString("出院情况", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1680) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + 20 + titlerowpitch * 16) * zoom * zoomY)));//标题：右侧出院情况诊断

            #endregion

            #region 第十七行至第二十七行循环填充栏
            for(int i=0;i<11;i++)
            {
                g.DrawRectangle(drawlinenPen, Convert.ToInt32((startPointX + 0) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * (16 + i)) * zoom * zoomY), Convert.ToInt32(415 * zoom * zoomX), Convert.ToInt32(60 * zoom * zoomY));//图形：左侧出院诊断方框
                g.DrawRectangle(drawlinenPen, Convert.ToInt32((startPointX + 415) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * (16 + i)) * zoom * zoomY), Convert.ToInt32(200 * zoom * zoomX), Convert.ToInt32(60 * zoom * zoomY));//图形：左侧疾病编码方框
                g.DrawRectangle(drawlinenPen, Convert.ToInt32((startPointX + 615) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * (16 + i)) * zoom * zoomY), Convert.ToInt32(150 * zoom * zoomX), Convert.ToInt32(60 * zoom * zoomY));//图形：左侧入院情况方框
                g.DrawRectangle(drawlinenPen, Convert.ToInt32((startPointX + 765) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * (16 + i)) * zoom * zoomY), Convert.ToInt32(150 * zoom * zoomX), Convert.ToInt32(60 * zoom * zoomY));//图形：左侧出院情况方框

                g.DrawRectangle(drawlinenPen, Convert.ToInt32((startPointX + 915) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * (16 + i)) * zoom * zoomY), Convert.ToInt32(415 * zoom * zoomX), Convert.ToInt32(60 * zoom * zoomY));//图形：右侧出院诊断方框
                g.DrawRectangle(drawlinenPen, Convert.ToInt32((startPointX + 1330) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * (16 + i)) * zoom * zoomY), Convert.ToInt32(200 * zoom * zoomX), Convert.ToInt32(60 * zoom * zoomY));//图形：右侧疾病编码方框
                g.DrawRectangle(drawlinenPen, Convert.ToInt32((startPointX + 1530) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * (16 + i)) * zoom * zoomY), Convert.ToInt32(150 * zoom * zoomX), Convert.ToInt32(60 * zoom * zoomY));//图形：右侧入院情况方框
                g.DrawRectangle(drawlinenPen, Convert.ToInt32((startPointX + 1680) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * (16 + i)) * zoom * zoomY), Convert.ToInt32(150 * zoom * zoomX), Convert.ToInt32(60 * zoom * zoomY));//图形：右侧出院情况方框
            }

            #region 注释
            //for (int i = 0; i < 9; i++)
            //{
            //    TextBox ZCCYZD = new TextBox();
            //    ZCCYZD.Name = "ZCCYZD" + Convert.ToString(i);
            //    ZCCYZD.Font = printfont;
            //    ZCCYZD.Text = "输入诊断";
            //    ZCCYZD.Location = new Point(Convert.ToInt32((startPointX + 120) * zoom * zoomX), Convert.ToInt32((startPointY + 32 + titlerowpitch * (17 + i)) * zoom * zoomY));
            //    ZCCYZD.ForeColor = Color.Green;
            //    ZCCYZD.Click += new EventHandler(lbl_Click);
            //    panel1.Controls.Add(ZCCYZD);

            //    TextBox YCCYZD = new TextBox();
            //    YCCYZD.Name = "YCCYZD" + Convert.ToString(i);
            //    YCCYZD.Font = printfont;
            //    YCCYZD.Text = "输入诊断";
            //    YCCYZD.Location = new Point(Convert.ToInt32((startPointX + 1035) * zoom * zoomX), Convert.ToInt32((startPointY + 32 + titlerowpitch * (17 + i)) * zoom * zoomY));
            //    YCCYZD.ForeColor = Color.Green;
            //    YCCYZD.Click += new EventHandler(lbl_Click);
            //    panel1.Controls.Add(YCCYZD);
            //}
            #endregion

            #endregion

            #endregion

            #region 第二十八行 入院病情 出院情况

            #region 入院病情
            g.DrawString("入院病情", printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 0) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 27) * zoom * zoomY)));//标题：入院病情
            g.DrawString("1.有", printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 180) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 27) * zoom * zoomY)));//标题：1.有
            g.DrawString("2.临床确定", printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 300) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 27) * zoom * zoomY)));//标题：2.临床确定
            g.DrawString("3.情况未明", printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 500) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 27) * zoom * zoomY)));//标题：3.情况未明
            g.DrawString("4.无", printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 700) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 27) * zoom * zoomY)));//标题：4.无
            #endregion

            #region 出院情况
            g.DrawString("出院情况", printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 835) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 27) * zoom * zoomY)));//标题：出院情况
            g.DrawString("1.治愈", printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1000) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 27) * zoom * zoomY)));//标题：1.治愈
            g.DrawString("2.好转", printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1170) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 27) * zoom * zoomY)));//标题：2.好转
            g.DrawString("3.未愈", printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1340) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 27) * zoom * zoomY)));//标题：3.未愈
            g.DrawString("4.死亡", printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1510) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 27) * zoom * zoomY)));//标题：4.死亡
            g.DrawString("5.其他", printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1680) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 27) * zoom * zoomY)));//标题：5.其他
            #endregion

            #region 第二十八行整体下划线
            g.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 0) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 40 + titlerowpitch * 27) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 1840) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 40 + titlerowpitch * 27) * zoom * zoomY)));//下划线：第二十八行整体填充横线
            #endregion 

            #endregion

            #region 第二十九行 损伤、中毒的外部原因 疾病编码

            #region 损伤、中毒的外部原因
            g.DrawString("损伤、中毒的外部原因", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 0) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 28) * zoom * zoomY)));//标题：损伤、中毒的外部原因
            g.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 370) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 40 + titlerowpitch * 28) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 1200) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 40 + titlerowpitch * 28) * zoom * zoomY)));//下划线：损伤、中毒的外部原因填充横线
            #endregion

            #region 疾病编码
            g.DrawString("疾病编号", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1220) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 28) * zoom * zoomY)));//标题：疾病编号
            g.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 1380) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 40 + titlerowpitch * 28) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 1840) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 40 + titlerowpitch * 28) * zoom * zoomY)));//下划线：疾病编号填充横线
            #endregion

            #endregion

            #region 第三十行 病理诊断 疾病编码 病理号

            #region 病理诊断
            g.DrawString("病理诊断", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 0) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 29) * zoom * zoomY)));//标题：病理诊断
            g.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 180) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 40 + titlerowpitch * 29) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 940) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 40 + titlerowpitch * 29) * zoom * zoomY)));//下划线：病理诊断填充横线
            #endregion

            #region 疾病编码
            g.DrawString("疾病编码", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 950) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 29) * zoom * zoomY)));//标题：疾病编码
            g.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 1120) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 40 + titlerowpitch * 29) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 1490) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 40 + titlerowpitch * 29) * zoom * zoomY)));//下划线：疾病编码填充横线
            #endregion

            #region 病理号
            g.DrawString("病理号", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1500) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 29) * zoom * zoomY)));//标题：病理号
            g.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 1630) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 40 + titlerowpitch * 29) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 1840) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 40 + titlerowpitch * 29) * zoom * zoomY)));//下划线：病理号填充横线
            #endregion

            #endregion

            #region 第三十一行 药物过敏 死亡患者尸检

            #region 药物过敏
            g.DrawString("药物过敏", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 0) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 30) * zoom * zoomY)));//标题：药物过敏
            g.DrawRectangle(drawlinenPen, Convert.ToInt32((startPointX + 160) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 30) * zoom * zoomY), 15, 15);//图形：药物过敏方框
            
            g.DrawString("过敏药物", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX +318) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 30) * zoom * zoomY)));//标题：过敏药物
            g.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 470) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 40 + titlerowpitch * 30) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 1440) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 40 + titlerowpitch * 30) * zoom * zoomY)));//下划线：过敏药物填充横线
            #endregion

            #region 死亡患者尸检
            g.DrawString("死亡患者尸检", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1450) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 30) * zoom * zoomY)));//标题：死亡患者尸检
            #endregion

            #endregion

            #region 第三十二行 抢救 成功

            #region 抢救
            g.DrawString("抢救", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 0) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 31) * zoom * zoomY)));//标题：抢救
            g.DrawRectangle(drawlinenPen, Convert.ToInt32((startPointX + 160) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 31) * zoom * zoomY), 15, 15);//图形：抢救方框
            #endregion

            #region 成功
            g.DrawString("成功", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 318) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 31) * zoom * zoomY)));//标题：成功
            g.DrawString("次", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 600) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 31) * zoom * zoomY)));//标题：次
            g.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 410) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 40 + titlerowpitch * 31) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 600) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 40 + titlerowpitch * 31) * zoom * zoomY)));//下划线：抢救成功填充横线
            #endregion

            #endregion

            #region 第三十三行 血型 Rh 输血反应

            #region 血型
            g.DrawString("血型", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 0) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 32) * zoom * zoomY)));//标题：血型
            g.DrawRectangle(drawlinenPen, Convert.ToInt32((startPointX + 160) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 32) * zoom * zoomY), 15, 15);//图形：血型方框
            #endregion

            #region Rh
            g.DrawString("Rh", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 700) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 32) * zoom * zoomY)));//标题：Rh
            g.DrawRectangle(drawlinenPen, Convert.ToInt32((startPointX + 760) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 32) * zoom * zoomY), 15, 15);//图形：Rh方框
            #endregion

            #region 输血反应
            g.DrawString("输血反应", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1350) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 32) * zoom * zoomY)));//标题：输血反应
            g.DrawRectangle(drawlinenPen, Convert.ToInt32((startPointX + 1520) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 32) * zoom * zoomY), 15, 15);//图形：输血反应方框
            #endregion

            #endregion

            #region 第三十四行 妊娠梅毒筛查 新生儿疾病筛查

            #region 妊娠梅毒筛查
            g.DrawString("妊娠梅毒筛查", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 0) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 33) * zoom * zoomY)));//标题：血型
            g.DrawRectangle(drawlinenPen, Convert.ToInt32((startPointX + 250) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 33) * zoom * zoomY), 15, 15);//图形：血型方框
            #endregion

            #region 新生儿疾病筛查
            g.DrawString("新生儿疾病筛查：", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 400) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 33) * zoom * zoomY)));//标题：新生儿疾病筛查
            g.DrawString("CH", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 680) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 33) * zoom * zoomY)));//标题：CH
            g.DrawString("RKU", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 900) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 33) * zoom * zoomY)));//标题：PKU
            g.DrawString("CAH", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1120) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 33) * zoom * zoomY)));//标题：CAH
            g.DrawString("G6PD", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1350) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 33) * zoom * zoomY)));//标题：G6PD
            g.DrawString("听力", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1600) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 33) * zoom * zoomY)));//标题：听力

            #endregion

            #endregion

            #region 第三十五行 产后出血 新生儿性别 体重

            #region 产后出血
            g.DrawString("产后出血", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 0) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 34) * zoom * zoomY)));//标题：产后出血
            g.DrawRectangle(drawlinenPen, Convert.ToInt32((startPointX + 200) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 34) * zoom * zoomY), 15, 15);//图形：产后出血方框
            #endregion

            #region 新生儿性别
            g.DrawString("新生儿性别", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 330) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 34) * zoom * zoomY)));//标题：新生儿性别
            g.DrawRectangle(drawlinenPen, Convert.ToInt32((startPointX + 530) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 34) * zoom * zoomY), 15, 15);//图形：产后出血方框
            #endregion

            #region 体重
            g.DrawString("体重", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 740) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 34) * zoom * zoomY)));//标题：体重
            g.DrawString("克", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1020) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 34) * zoom * zoomY)));//标题：克
            g.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 830) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 40 + titlerowpitch * 34) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 1010) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 40 + titlerowpitch * 34) * zoom * zoomY)));//下划线：体重填充横线
            #endregion

            #endregion

            #region 第三十六行 科主任 主任（副主任）医师 主治医师 住院医师

            #region 科主任
            g.DrawString("科主任", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 0) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 35) * zoom * zoomY)));//标题：科主任
            g.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 130) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 40 + titlerowpitch * 35) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 420) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 40 + titlerowpitch * 35) * zoom * zoomY)));//下划线：科主任填充横线
            #endregion

            #region 主任（副主任）医师
            g.DrawString("主任（副主任）医师", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 430) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 35) * zoom * zoomY)));//标题：主任（副主任）医师
            g.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 770) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 40 + titlerowpitch * 35) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 890) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 40 + titlerowpitch * 35) * zoom * zoomY)));//下划线：主任（副主任）医师填充横线
            #endregion

            #region 主治医师
            g.DrawString("主治医师", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 900) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 35) * zoom * zoomY)));//标题：主治医师
            g.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 1060) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 40 + titlerowpitch * 35) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 1340) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 40 + titlerowpitch * 35) * zoom * zoomY)));//下划线：主治医师填充横线
            #endregion

            #region 住院医师
            g.DrawString("住院医师", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1350) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 35) * zoom * zoomY)));//标题：住院医师
            g.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 1520) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 40 + titlerowpitch * 35) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 1840) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 40 + titlerowpitch * 35) * zoom * zoomY)));//下划线：住院医师填充横线
            #endregion

            #endregion

            #region 第三十七行 责任护士 进修医师 实习医师 编码员

            #region 责任护士
            g.DrawString("责任护士", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 0) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 36) * zoom * zoomY)));//标题：责任护士
            g.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 160) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 40 + titlerowpitch * 36) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 420) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 40 + titlerowpitch * 36) * zoom * zoomY)));//下划线：责任护士填充横线
            #endregion

            #region 进修医师
            g.DrawString("进修医师", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 430) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 36) * zoom * zoomY)));//标题：进修医师
            g.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 580) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 40 + titlerowpitch * 36) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 890) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 40 + titlerowpitch * 36) * zoom * zoomY)));//下划线：进修医师填充横线
            #endregion

            #region 实习医师
            g.DrawString("实习医师", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 900) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 36) * zoom * zoomY)));//标题：实习医师
            g.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 1060) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 40 + titlerowpitch * 36) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 1340) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 40 + titlerowpitch * 36) * zoom * zoomY)));//下划线：实习医师填充横线
            #endregion

            #region 编码员
            g.DrawString("编码员", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1350) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 36) * zoom * zoomY)));//标题：编码员
            g.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 1480) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 40 + titlerowpitch * 36) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 1840) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 40 + titlerowpitch * 36) * zoom * zoomY)));//下划线：编码员填充横线
            #endregion

            #endregion

            #region 第三十八行 病案质量 质控医师 质控护士 质控日期

            #region 病案质量
            g.DrawString("病案质量", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 0) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 37) * zoom * zoomY)));//标题：病案质量
            g.DrawRectangle(drawlinenPen, Convert.ToInt32((startPointX + 180) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 37) * zoom * zoomY), 15, 15);//图形：病案质量方框
            #endregion

            #region 质控医师
            g.DrawString("质控医师", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 500) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 37) * zoom * zoomY)));//标题：质控医师
            g.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 660) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 40 + titlerowpitch * 37) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 830) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 40 + titlerowpitch * 37) * zoom * zoomY)));//下划线：质控医师填充横线
            #endregion

            #region 质控护士
            g.DrawString("质控护士", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 840) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 37) * zoom * zoomY)));//标题：质控护士
            g.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 1000) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 40 + titlerowpitch * 37) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 1270) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 40 + titlerowpitch * 37) * zoom * zoomY)));//下划线：质控护士填充横线
            #endregion

            #region 质控日期
            g.DrawString("质控日期", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1280) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 37) * zoom * zoomY)));//标题：质控日期
            #endregion

            #endregion

            //换页
            #region 第三十九行至第四十五行 手术操作名称及编码 手术及操作日期 手术级别 手术及操作医师 切合愈合等级 麻醉方式 麻醉医师

            #region 第三十九，四十行行标题栏
            g.DrawString("手术操作名称及编码", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 80) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 0.5) * zoom * zoomY)));//标题：手术操作名称及编码
            g.DrawString("手术及操", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 520) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 0) * zoom * zoomY)));//标题：手术及操
            g.DrawString("作日期", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 540) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 0.6) * zoom * zoomY)));//标题：作日期
            g.DrawString("手术", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 730) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 0) * zoom * zoomY)));//标题：手术
            g.DrawString("级别", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 730) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 0.6) * zoom * zoomY)));//标题：级别
            g.DrawString("手术及操作医师", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 950) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 0) * zoom * zoomY)));//标题：第三十九行手术及操作医师
            g.DrawString("术者", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 870) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 0.85) * zoom * zoomY)));//标题：第四十行术者
            g.DrawString("I助", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 1030) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 0.85) * zoom * zoomY)));//标题：第四十行一助
            g.DrawString("II助", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 1170) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 0.85) * zoom * zoomY)));//标题：第四十行二助
            g.DrawString("切口愈", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 1310) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 0) * zoom * zoomY)));//标题：切口愈
            g.DrawString("合等级", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 1310) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 0.6) * zoom * zoomY)));//标题：合等级
            g.DrawString("麻醉方式", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 1470) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 0.5) * zoom * zoomY)));//标题：麻醉方式
            g.DrawString("麻醉", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 1680) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 0) * zoom * zoomY)));//标题：麻醉
            g.DrawString("医师", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 1680) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 0.6) * zoom * zoomY)));//标题：医师
            #endregion

            #region 标题栏表格
            g.DrawRectangle(drawlinenPen, Convert.ToInt32((bstratPointX + 0) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + titlerowpitch * 0) * zoom * zoomY), Convert.ToInt32(460 * zoom * zoomX), Convert.ToInt32(120 * zoom * zoomY));//图形：手术操作名称及编码
            g.DrawRectangle(drawlinenPen, Convert.ToInt32((bstratPointX + 460) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + titlerowpitch * 0) * zoom * zoomY), Convert.ToInt32(240 * zoom * zoomX), Convert.ToInt32(120 * zoom * zoomY));//图形：手术及操作日期
            g.DrawRectangle(drawlinenPen, Convert.ToInt32((bstratPointX + 700) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + titlerowpitch * 0) * zoom * zoomY), Convert.ToInt32(150 * zoom * zoomX), Convert.ToInt32(120 * zoom * zoomY));//图形：手术级别
            g.DrawRectangle(drawlinenPen, Convert.ToInt32((bstratPointX + 1300) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + titlerowpitch * 0) * zoom * zoomY), Convert.ToInt32(150 * zoom * zoomX), Convert.ToInt32(120 * zoom * zoomY));//图形：切口愈合等级
            g.DrawRectangle(drawlinenPen, Convert.ToInt32((bstratPointX + 1450) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + titlerowpitch * 0) * zoom * zoomY), Convert.ToInt32(200 * zoom * zoomX), Convert.ToInt32(120 * zoom * zoomY));//图形：麻醉方式
            g.DrawRectangle(drawlinenPen, Convert.ToInt32((bstratPointX + 1650) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + titlerowpitch * 0) * zoom * zoomY), Convert.ToInt32(170 * zoom * zoomX), Convert.ToInt32(120 * zoom * zoomY));//图形：麻醉医师

            g.DrawRectangle(drawlinenPen, Convert.ToInt32((bstratPointX + 850) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + titlerowpitch * 0) * zoom * zoomY), Convert.ToInt32(450 * zoom * zoomX), Convert.ToInt32(60 * zoom * zoomY));//图形：手术及词作医师
            g.DrawRectangle(drawlinenPen, Convert.ToInt32((bstratPointX + 850) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + titlerowpitch * 1) * zoom * zoomY), Convert.ToInt32(150 * zoom * zoomX), Convert.ToInt32(60 * zoom * zoomY));//图形：术者
            g.DrawRectangle(drawlinenPen, Convert.ToInt32((bstratPointX + 1000) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + titlerowpitch * 1) * zoom * zoomY), Convert.ToInt32(150 * zoom * zoomX), Convert.ToInt32(60 * zoom * zoomY));//图形：I助
            g.DrawRectangle(drawlinenPen, Convert.ToInt32((bstratPointX + 1150) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + titlerowpitch * 1) * zoom * zoomY), Convert.ToInt32(150 * zoom * zoomX), Convert.ToInt32(60 * zoom * zoomY));//图形：II助

            #endregion

            #region 第四十一行至第四十五行循环填充栏
            for (int i = 0; i < 5; i++)
            {
                g.DrawRectangle(drawlinenPen, Convert.ToInt32((bstratPointX + 0) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + titlerowpitch * (2 + i)) * zoom * zoomY), Convert.ToInt32(460 * zoom * zoomX), Convert.ToInt32(60 * zoom * zoomY));//图形：手术操作名称及编码
                g.DrawRectangle(drawlinenPen, Convert.ToInt32((bstratPointX + 460) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + titlerowpitch * (2 + i)) * zoom * zoomY), Convert.ToInt32(240 * zoom * zoomX), Convert.ToInt32(60 * zoom * zoomY));//图形：手术及操作日期
                g.DrawRectangle(drawlinenPen, Convert.ToInt32((bstratPointX + 700) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + titlerowpitch * (2 + i)) * zoom * zoomY), Convert.ToInt32(150 * zoom * zoomX), Convert.ToInt32(60 * zoom * zoomY));//图形：手术级别
                g.DrawRectangle(drawlinenPen, Convert.ToInt32((bstratPointX + 850) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + titlerowpitch * (2 + i)) * zoom * zoomY), Convert.ToInt32(150 * zoom * zoomX), Convert.ToInt32(60 * zoom * zoomY));//图形：术者
                g.DrawRectangle(drawlinenPen, Convert.ToInt32((bstratPointX + 1000) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + titlerowpitch * (2 + i)) * zoom * zoomY), Convert.ToInt32(150 * zoom * zoomX), Convert.ToInt32(60 * zoom * zoomY));//图形：I助
                g.DrawRectangle(drawlinenPen, Convert.ToInt32((bstratPointX + 1150) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + titlerowpitch * (2 + i)) * zoom * zoomY), Convert.ToInt32(150 * zoom * zoomX), Convert.ToInt32(60 * zoom * zoomY));//图形：II助
                g.DrawRectangle(drawlinenPen, Convert.ToInt32((bstratPointX + 1300) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + titlerowpitch * (2 + i)) * zoom * zoomY), Convert.ToInt32(150 * zoom * zoomX), Convert.ToInt32(60 * zoom * zoomY));//图形：切口愈合等级
                g.DrawRectangle(drawlinenPen, Convert.ToInt32((bstratPointX + 1450) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + titlerowpitch * (2 + i)) * zoom * zoomY), Convert.ToInt32(200 * zoom * zoomX), Convert.ToInt32(60 * zoom * zoomY));//图形：麻醉方式
                g.DrawRectangle(drawlinenPen, Convert.ToInt32((bstratPointX + 1650) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + titlerowpitch * (2 + i)) * zoom * zoomY), Convert.ToInt32(170 * zoom * zoomX), Convert.ToInt32(60 * zoom * zoomY));//图形：麻醉医师
            }
            #endregion

            #endregion

            #region 第四十六行 离院方式 医嘱离院 医嘱转院 拟接收医疗机构名称

            #region 离院方式
            g.DrawString("离院方式", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 0) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 7) * zoom * zoomY)));//标题：离院方式
            g.DrawRectangle(drawlinenPen, Convert.ToInt32((bstratPointX + 160) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + titlerowpitch * 7) * zoom * zoomY), 15, 15);//图形：离院方式方框
            #endregion

            #region 医嘱离院

            #endregion

            #region 医嘱转院

            #endregion

            #region 拟接收医疗机构名称
            g.DrawString("拟接收医疗机构名称", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 640) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 7) * zoom * zoomY)));//标题：拟接收医疗机构名称
            g.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((bstratPointX + 980) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 7) * zoom * zoomY)), new PointF(Convert.ToInt32((bstratPointX + 1840) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 7) * zoom * zoomY)));//下划线：拟接收医疗机构名称填充横线
            #endregion

            #endregion

            #region 第四十七行 医嘱转社区卫生服务机构/乡镇卫生院 拟接收医疗机构名称

            #region 医嘱转社区卫生服务机构/乡镇卫生院

            #endregion

            #region 拟接收医疗机构名称
            g.DrawString("拟接收医疗机构名称", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 660) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 8) * zoom * zoomY)));//标题：拟接收医疗机构名称
            g.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((bstratPointX + 1000) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 8) * zoom * zoomY)), new PointF(Convert.ToInt32((bstratPointX + 1840) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 8) * zoom * zoomY)));//下划线：拟接收医疗机构名称填充横线
            #endregion

            #endregion

            #region 第四十八行 非医嘱离院 死亡 其他

            #region 非医嘱离院

            #endregion

            #region 死亡

            #endregion

            #region 其他

            #endregion

            #endregion

            #region 第四十九行 是否有出院31天再住院计划

            #region 是否有出院31天再住院计划
            g.DrawString("是否有出院31天再住院计划", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 0) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 10) * zoom * zoomY)));//标题：是否有出院31天再住院计划
            #endregion

            #region 目的
            g.DrawString("目的", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 650) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 10) * zoom * zoomY)));//标题：目的
            g.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((bstratPointX + 740) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 10) * zoom * zoomY)), new PointF(Convert.ToInt32((bstratPointX + 1840) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 10) * zoom * zoomY)));//下划线：目的填充横线
            #endregion

            #endregion

            #region 第五十行 颅脑损伤患者昏迷时间

            #region 颅脑损伤患者昏迷时间
            g.DrawString("颅脑损伤患者昏迷时间", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 0) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 11) * zoom * zoomY)));//标题：颅脑损伤患者昏迷时间
            g.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((bstratPointX + 380) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 11) * zoom * zoomY)), new PointF(Convert.ToInt32((bstratPointX + 1840) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 11) * zoom * zoomY)));//下划线：颅脑损伤患者昏迷时间填充横线
            #endregion

            #endregion

            #region 第五十一行 （凡可由……住院病案

            #region （凡可由……住院病案
            g.DrawString("（凡可由医院信息系统提供住院费用清单并包含以下所有内容的，应将清单打印作为附件，住院病案", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 0) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 12) * zoom * zoomY)));//标题：（凡可由……住院病案
            #endregion

            #endregion

            #region 第五十二行 首页中……所有空格）

            #region 首页中……所有空格）
            g.DrawString("首页中可不填写“住院费用”一栏的所有空格。）", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 0) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 13) * zoom * zoomY)));//标题：首页中……所有空格）
            #endregion

            #endregion

            #region 第五十三行 住院费用（元） 总费用 自付金额 自费金额 其他支付

            #region 住院费用（元）
            g.DrawString("住院费用（元）：", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 0) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 14) * zoom * zoomY)));//标题：住院费用（元）
            #endregion

            #region 总费用
            g.DrawString("总费用", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 300) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 14) * zoom * zoomY)));//标题：总费用
            g.DrawString(syjbk.ZFY1, printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 420) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 14) * zoom * zoomY)));//字符：总费用填充
            g.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((bstratPointX + 420) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 14) * zoom * zoomY)), new PointF(Convert.ToInt32((bstratPointX + 600) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 14) * zoom * zoomY)));//下划线：总费用填充横线
            #endregion

            #region 自付金额
            g.DrawString("（自付金额：", printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 620) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 14) * zoom * zoomY)));//标题：自付金额
            g.DrawString(syjbk.ZFJE1, printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 820) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 14) * zoom * zoomY)));//字符：自付金额填充
            g.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((bstratPointX + 820) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 14) * zoom * zoomY)), new PointF(Convert.ToInt32((bstratPointX + 1000) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 14) * zoom * zoomY)));//下划线：自付金额填充横线
            #endregion

            #region 自费金额
            g.DrawString("自费金额：", printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 1010) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 14) * zoom * zoomY)));//标题：自费金额
            g.DrawString(syjbk.ZFEIJE1, printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 1200) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 14) * zoom * zoomY)));//字符：自费金额填充
            g.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((bstratPointX + 1180) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 14) * zoom * zoomY)), new PointF(Convert.ToInt32((bstratPointX + 1360) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 14) * zoom * zoomY)));//下划线：自费金额填充横线
            #endregion

            #region 其他支付
            g.DrawString("其他支付：", printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 1380) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 14) * zoom * zoomY)));//标题：自付金额
            g.DrawString(syjbk.QTZF1, printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 1570) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 14) * zoom * zoomY)));//字符：自付金额填充
            g.DrawString("）", printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 1760) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 14) * zoom * zoomY)));//标题：）
            g.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((bstratPointX + 1560) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 14) * zoom * zoomY)), new PointF(Convert.ToInt32((bstratPointX + 1740) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 14) * zoom * zoomY)));//下划线：自付金额填充横线
            #endregion

            #endregion

            #region 第五十四行 综合医疗服务类 一般医疗服务费 一般治疗操作费 护理费

            #region 综合医疗服务类
            g.DrawString("1.综合医疗服务类：", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 0) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 15) * zoom * zoomY)));//标题：综合医疗服务类
            #endregion

            #region 一般医疗服务费
            g.DrawString("（1）一般医疗服务费：", printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 350) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 15) * zoom * zoomY)));//标题：一般医疗服务费
            g.DrawString(syjbk.YBYLFWF1, printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 710) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 15) * zoom * zoomY)));//字符：一般医疗服务费填充
            g.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((bstratPointX + 700) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 15) * zoom * zoomY)), new PointF(Convert.ToInt32((bstratPointX + 900) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 15) * zoom * zoomY)));//下划线：一般医疗服务费填充横线
            #endregion

            #region 一般治疗操作费
            g.DrawString("（2）一般治疗操作费：", printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 920) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 15) * zoom * zoomY)));//标题：一般治疗操作费
            g.DrawString(syjbk.YBZLCZF1, printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 1280) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 15) * zoom * zoomY)));//字符：一般治疗操作费填充
            g.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((bstratPointX + 1270) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 15) * zoom * zoomY)), new PointF(Convert.ToInt32((bstratPointX + 1470) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 15) * zoom * zoomY)));//下划线：一般治疗操作费填充横线
            #endregion

            #region 护理费
            g.DrawString("（3）护理费：", printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 1440) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 15) * zoom * zoomY)));//标题：护理费
            g.DrawString(syjbk.HLF1, printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 1660) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 15) * zoom * zoomY)));//字符：护理费填充
            g.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((bstratPointX + 1650) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 15) * zoom * zoomY)), new PointF(Convert.ToInt32((bstratPointX + 1840) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 15) * zoom * zoomY)));//下划线：护理费填充横线
            #endregion

            #endregion

            #region 第五十五行 其他费用

            #region 其他费用
            g.DrawString("（4）其他费用：", printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 350) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 16) * zoom * zoomY)));//标题：其他费用
            g.DrawString(syjbk.QTF1, printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 630) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 16) * zoom * zoomY)));//字符：其他费用填充
            g.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((bstratPointX + 620) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 16) * zoom * zoomY)), new PointF(Convert.ToInt32((bstratPointX + 820) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 16) * zoom * zoomY)));//下划线：其他费用填充横线
            #endregion

            #endregion

            #region 第五十六行 诊断类 病理诊断费 实验室诊断费 影像学诊断费

            #region 诊断类
            g.DrawString("2.诊断类：", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 0) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 17) * zoom * zoomY)));//标题：诊断类
            #endregion

            #region 病理诊断费
            g.DrawString("（5）病理诊断费：", printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 350) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 17) * zoom * zoomY)));//标题：病理诊断费
            g.DrawString(syjbk.BLZDF1, printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 650) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 17) * zoom * zoomY)));//字符：手病理诊断费填充
            g.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((bstratPointX + 640) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 17) * zoom * zoomY)), new PointF(Convert.ToInt32((bstratPointX + 840) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 17) * zoom * zoomY)));//下划线：病理诊断费填充横线
            #endregion

            #region 实验室诊断费
            g.DrawString("（6）实验室诊断费：", printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 820) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 17) * zoom * zoomY)));//标题：实验室诊断费
            g.DrawString(syjbk.SYSZDF1, printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 1140) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 17) * zoom * zoomY)));//字符：实验室诊断费填充
            g.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((bstratPointX + 1130) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 17) * zoom * zoomY)), new PointF(Convert.ToInt32((bstratPointX + 1330) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 17) * zoom * zoomY)));//下划线：实验室诊断费填充横线
            #endregion

            #region 影像学诊断费
            g.DrawString("（7）影像学诊断费：", printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 1350) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 17) * zoom * zoomY)));//标题：影像学诊断费
            g.DrawString(syjbk.YXXZDF1, printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 1670) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 17) * zoom * zoomY)));//字符：影像学诊断费填充
            g.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((bstratPointX + 1660) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 17) * zoom * zoomY)), new PointF(Convert.ToInt32((bstratPointX + 1840) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 17) * zoom * zoomY)));//下划线：影像学诊断费填充横线
            #endregion

            #endregion

            #region 第五十七行 临床诊断项目费

            #region 临床诊断项目费
            g.DrawString("（8）临床诊断项目费：", printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 350) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 18) * zoom * zoomY)));//标题：临床诊断项目费
            g.DrawString(syjbk.LCZDXMF1, printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 720) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 18) * zoom * zoomY)));//字符：临床诊断项目费填充
            g.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((bstratPointX + 710) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 18) * zoom * zoomY)), new PointF(Convert.ToInt32((bstratPointX + 910) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 18) * zoom * zoomY)));//下划线：临床诊断项目费填充横线
            #endregion

            #endregion

            #region 第五十八行 治疗类 非手术治疗项目费 临床物理治疗费

            #region 治疗类
            g.DrawString("3.治疗类：", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 0) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 19) * zoom * zoomY)));//标题：治疗类
            #endregion

            #region 非手术治疗项目费
            g.DrawString("（9）非手术治疗项目费：", printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 350) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 19) * zoom * zoomY)));//标题：非手术治疗项目费
            g.DrawString(syjbk.FSSZLXMF1, printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 740) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 19) * zoom * zoomY)));//字符：非手术治疗项目费填充
            g.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((bstratPointX + 730) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 19) * zoom * zoomY)), new PointF(Convert.ToInt32((bstratPointX + 930) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 19) * zoom * zoomY)));//下划线：非手术治疗项目费填充横线
            #endregion

            #region 临床物理治疗费
            g.DrawString("（临床物理治疗费：", printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 950) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 19) * zoom * zoomY)));//标题：临床物理治疗费
            g.DrawString(syjbk.LCWLZLF1, printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 1260) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 19) * zoom * zoomY)));//字符：临床物理治疗费填充
            g.DrawString("）", printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 1450) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 19) * zoom * zoomY)));//标题）
            g.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((bstratPointX + 1250) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 19) * zoom * zoomY)), new PointF(Convert.ToInt32((bstratPointX + 1450) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 19) * zoom * zoomY)));//下划线：临床物理治疗费填充横线
            #endregion

            #endregion

            #region 第五十九行 手术治疗费 麻醉费 手术费

            #region 手术治疗费
            g.DrawString("（10）手术治疗费：", printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 350) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 20) * zoom * zoomY)));//标题：手术治疗费
            g.DrawString(syjbk.SSZLF1, printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 660) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 20) * zoom * zoomY)));//字符：手术治疗费填充
            g.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((bstratPointX + 650) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 20) * zoom * zoomY)), new PointF(Convert.ToInt32((bstratPointX + 850) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 20) * zoom * zoomY)));//下划线：手术治疗费填充横线
            #endregion

            #region 麻醉费
            g.DrawString("（麻醉费：", printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 850) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 20) * zoom * zoomY)));//标题：麻醉费
            g.DrawString(syjbk.MZF1, printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 1020) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 20) * zoom * zoomY)));//字符：麻醉费填充
            g.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((bstratPointX + 1010) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 20) * zoom * zoomY)), new PointF(Convert.ToInt32((bstratPointX + 1210) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 20) * zoom * zoomY)));//下划线：麻醉费填充横线
            #endregion

            #region 手术费
            g.DrawString("手术费：", printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 1220) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 20) * zoom * zoomY)));//标题：手术费
            g.DrawString(syjbk.SSF1, printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 1370) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 20) * zoom * zoomY)));//字符：手术费填充
            g.DrawString("）", printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 1560) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 20) * zoom * zoomY)));//标题：）
            g.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((bstratPointX + 1360) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 20) * zoom * zoomY)), new PointF(Convert.ToInt32((bstratPointX + 1560) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 20) * zoom * zoomY)));//下划线：手术费填充横线
            #endregion

            #endregion

            #region 第六十行 康复类 康复费

            #region 康复类
            g.DrawString("4.康复类：", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 0) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 21) * zoom * zoomY)));//标题：康复类
            #endregion

            #region 康复费
            g.DrawString("（11）康复费：", printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 350) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 21) * zoom * zoomY)));//标题：康复费
            g.DrawString(syjbk.KFF1, printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 610) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 21) * zoom * zoomY)));//字符：康复费填充
            g.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((bstratPointX + 600) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 21) * zoom * zoomY)), new PointF(Convert.ToInt32((bstratPointX + 800) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 21) * zoom * zoomY)));//下划线：康复费填充横线
            #endregion

            #endregion

            #region 第六十一行 中医类 中医治疗费

            #region 中医类
            g.DrawString("5.中医类：", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 0) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 22) * zoom * zoomY)));//标题：中医类
            #endregion

            #region 中医治疗费
            g.DrawString("（12）中医治疗费：", printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 350) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 22) * zoom * zoomY)));//标题：中医治疗费
            g.DrawString(syjbk.ZYZLF1, printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 650) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 22) * zoom * zoomY)));//字符：中医治疗费填充
            g.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((bstratPointX + 640) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 22) * zoom * zoomY)), new PointF(Convert.ToInt32((bstratPointX + 840) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 22) * zoom * zoomY)));//下划线：中医治疗费填充横线
            #endregion

            #endregion

            #region 第六十二行 西药类 西药费 抗菌药物费用

            #region 西药类
            g.DrawString("6.西药类：", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 0) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 23) * zoom * zoomY)));//标题：西药类
            #endregion

            #region 西药费
            g.DrawString("（13）西药费：", printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 350) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 23) * zoom * zoomY)));//标题：西药费
            g.DrawString(syjbk.XYF1, printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 610) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 23) * zoom * zoomY)));//字符：西药费填充
            g.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((bstratPointX + 600) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 23) * zoom * zoomY)), new PointF(Convert.ToInt32((bstratPointX + 800) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 23) * zoom * zoomY)));//下划线：西药费填充横线
            #endregion

            #region 抗菌药物费用
            g.DrawString("（抗菌药物费用：", printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 830) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 23) * zoom * zoomY)));//标题：抗菌药物费用
            g.DrawString(syjbk.KJYWF1, printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 1110) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 23) * zoom * zoomY)));//字符：抗菌药物费用填充
            g.DrawString("）", printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 1300) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 23) * zoom * zoomY)));//标题：）
            g.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((bstratPointX + 1100) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 23) * zoom * zoomY)), new PointF(Convert.ToInt32((bstratPointX + 1300) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 23) * zoom * zoomY)));//下划线：抗菌药物费用填充横线
            #endregion

            #endregion

            #region 第六十三行 中药类 中成药费 中草药费

            #region 中药类
            g.DrawString("7.中药类：", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 0) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 24) * zoom * zoomY)));//标题：中药类
            #endregion

            #region 中成药费
            g.DrawString("（14）中成药费：", printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 350) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 24) * zoom * zoomY)));//标题：中成药费
            g.DrawString(syjbk.CHENGYF1, printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 630) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 24) * zoom * zoomY)));//字符：中成药费填充
            g.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((bstratPointX + 620) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 24) * zoom * zoomY)), new PointF(Convert.ToInt32((bstratPointX + 820) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 24) * zoom * zoomY)));//下划线：中成药费填充横线
            #endregion

            #region 中草药费
            g.DrawString("（15）中草药费：", printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 830) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 24) * zoom * zoomY)));//标题：中草药费
            g.DrawString(syjbk.CAOYF1, printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 1110) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 24) * zoom * zoomY)));//字符：中草药费填充
            g.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((bstratPointX + 1100) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 24) * zoom * zoomY)), new PointF(Convert.ToInt32((bstratPointX + 1300) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 24) * zoom * zoomY)));//下划线：中草药费填充横线
            #endregion

            #endregion

            #region 第六十四行 血液和血液制品类 血费 白蛋白类制品费 球蛋白类制品费

            #region 血液和血液制品类
            g.DrawString("8.血液和血液制品类：", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 0) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 25) * zoom * zoomY)));//标题：血液和血液制品类
            #endregion

            #region 血费
            g.DrawString("（16）血费：", printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 350) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 25) * zoom * zoomY)));//标题：血费
            g.DrawString(syjbk.XYF1, printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 550) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 25) * zoom * zoomY)));//字符：血费填充
            g.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((bstratPointX + 540) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 25) * zoom * zoomY)), new PointF(Convert.ToInt32((bstratPointX + 720) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 25) * zoom * zoomY)));//下划线：血费填充横线
            #endregion

            #region 白蛋白类制品费
            g.DrawString("（17）白蛋白类制品费：", printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 720) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 25) * zoom * zoomY)));//标题：白蛋白类制品费
            g.DrawString(syjbk.BDBLZPF1, printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 1090) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 25) * zoom * zoomY)));//字符：白蛋白类制品费填充
            g.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((bstratPointX + 1070) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 25) * zoom * zoomY)), new PointF(Convert.ToInt32((bstratPointX + 1270) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 25) * zoom * zoomY)));//下划线：白蛋白类制品费填充横线
            #endregion

            #region 球蛋白类制品费
            g.DrawString("（18）球蛋白类制品费：", printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 1270) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 25) * zoom * zoomY)));//标题：球蛋白类制品费
            g.DrawString(syjbk.QDBLZPF1, printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 1640) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 25) * zoom * zoomY)));//字符：球蛋白类制品费填充
            g.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((bstratPointX + 1620) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 25) * zoom * zoomY)), new PointF(Convert.ToInt32((bstratPointX + 1840) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 25) * zoom * zoomY)));//下划线：球蛋白类制品费填充横线
            #endregion

            #endregion

            #region 第六十五行 凝血因子类制品费 细胞因子类制品费

            #region 凝血因子类制品费
            g.DrawString("（19）凝血因子类制品费：", printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 350) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 26) * zoom * zoomY)));//标题：凝血因子类制品费
            g.DrawString(syjbk.NXYZLZPF1, printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 760) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 26) * zoom * zoomY)));//字符：凝血因子类制品费填充
            g.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((bstratPointX + 750) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 26) * zoom * zoomY)), new PointF(Convert.ToInt32((bstratPointX + 950) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 26) * zoom * zoomY)));//下划线：凝血因子类制品费填充横线
            #endregion

            #region 细胞因子类制品费
            g.DrawString("（20）细胞因子类制品费：", printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 950) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 26) * zoom * zoomY)));//标题：细胞因子类制品费
            g.DrawString(syjbk.XBYZLZPF1, printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 1360) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 26) * zoom * zoomY)));//字符：细胞因子类制品费填充
            g.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((bstratPointX + 1340) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 26) * zoom * zoomY)), new PointF(Convert.ToInt32((bstratPointX + 1540) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 26) * zoom * zoomY)));//下划线：细胞因子类制品费填充横线
            #endregion

            #endregion

            #region 第六十六行 耗材类 检查用一次性医用材料费 治疗用一次性医用材料费

            #region 耗材类
            g.DrawString("9.耗材类：", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 0) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 27) * zoom * zoomY)));//标题：耗材类
            #endregion

            #region 检查用一次性医用材料费
            g.DrawString("（21）检查用一次性医用材料费：", printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 350) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 27) * zoom * zoomY)));//标题：检查用一次性医用材料费
            g.DrawString(syjbk.JCYYCXCLF1, printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 860) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 27) * zoom * zoomY)));//字符：检查用一次性医用材料费填充
            g.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((bstratPointX + 850) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 27) * zoom * zoomY)), new PointF(Convert.ToInt32((bstratPointX + 1050) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 27) * zoom * zoomY)));//下划线：检查用一次性医用材料费填充横线
            #endregion

            #region 治疗用一次性医用材料费
            g.DrawString("（22）治疗用一次性医用材料费：", printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 1070) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 27) * zoom * zoomY)));//标题：治疗用一次性医用材料费
            g.DrawString(syjbk.ZLYYCXCLF1, printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 1580) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 27) * zoom * zoomY)));//字符：治疗用一次性医用材料费填充
            g.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((bstratPointX + 1570) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 27) * zoom * zoomY)), new PointF(Convert.ToInt32((bstratPointX + 1770) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 27) * zoom * zoomY)));//下划线：治疗用一次性医用材料费填充横线
            #endregion

            #endregion

            #region 第六十七行 手术用一次性医用材料费

            #region 手术用一次性医用材料费
            g.DrawString("（23）手术用一次性医用材料费：", printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 350) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 28) * zoom * zoomY)));//标题：手术用一次性医用材料费
            g.DrawString(syjbk.SSYYCXCLF1, printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 860) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 28) * zoom * zoomY)));//字符：手术用一次性医用材料费填充
            g.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((bstratPointX + 850) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 28) * zoom * zoomY)), new PointF(Convert.ToInt32((bstratPointX + 1050) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 28) * zoom * zoomY)));//下划线：手术用一次性医用材料费填充横线
            #endregion

            #endregion

            #region 第六十八行 其他类 其他费

            #region 其他类
            g.DrawString("10.其他类：", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 0) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 29) * zoom * zoomY)));//标题：其他类
            #endregion

            #region 其他费
            g.DrawString("（24）其他费：", printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 350) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 29) * zoom * zoomY)));//标题：其他费
            g.DrawString(syjbk.QTF2, printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 580) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 29) * zoom * zoomY)));//字符：其他费填充
            g.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((bstratPointX + 570) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 29) * zoom * zoomY)), new PointF(Convert.ToInt32((bstratPointX + 750) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 29) * zoom * zoomY)));//下划线：其他费填充横线
            #endregion

            #endregion

            #region 第六十九行 说明：……医疗

            #region 说明：……医疗
            g.DrawString("说明：医疗付费方式", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 0) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 30) * zoom * zoomY)));//标题：说明：……医疗
            g.DrawString("1.城镇职工基本医疗保险 2.城镇居民基本医疗保险 3.新型农村合作医疗", printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 380) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 30) * zoom * zoomY)));//标题：说明：……医疗
            #endregion

            #endregion

            #region 第七十行 贫困救助……其他

            #region 贫困救助……其他
            g.DrawString("4.贫困救助 5.商业医疗保险 6.全公费 7.全自费 8.其他社会保险 9.其他", printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 0) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 31) * zoom * zoomY)));//标题：贫困救助……其他
            #endregion

            #endregion

            #endregion

            Label btn = new Label();
            btn.Name = "底层";
            btn.Text = "";
            btn.ForeColor = Color.Black;
            btn.Location = new Point(200, 1100);
            btn.Visible = true;
            this.Controls.Add(btn);
        }

        public void lbl_Click(object sender, EventArgs e)
        {

        }

        #region 获取HIS服务器地址
        private string GetUrl()
        {
            IniFiles file = new IniFiles(Environment.CurrentDirectory + "\\clinic_client_cfg.ini");
            string url = file.ReadString("local", "his_url", "http://127.0.0.1:8081/cis/axis");
            url = url + "/FacadeService?wsdl";
            return url;
        }
        #endregion

        #region 获取病案首页基本信息
        public void ForminitializationBYJBXS()
        {
            string Url = GetUrl();
            DataTable dt=new DataTable();
            dt= HisService.xmlToTable(GetXML(Url,"com.saptac.basy.service.query.QueryBasyPatBaseInfoService"));
            syjbk.BRXZ1 = "";
            syjbk.JKKH1 = "";
            syjbk.BAHM1 = "";
            syjbk.BRXM1 = dt.Rows[0]["姓名"].ToString();
            syjbk.BRXB1 = dt.Rows[0]["性别"].ToString();
            syjbk.CSNY1 = dt.Rows[0]["出生日期"].ToString();
            syjbk.XSNL1 = Convert.ToInt32(dt.Rows[0]["年龄"].ToString());
            syjbk.GJDM1 = dt.Rows[0]["国籍"].ToString();

            syjbk.NL_BABY1 = "";
            syjbk.XSECSTZ1 = "";
            syjbk.XSERYTZ1 = "";

            //syjbk.NL_BABY1 = dt.Rows[0]["出生日期"].ToString();
            //syjbk.XSECSTZ1 = dt.Rows[0]["出生日期"].ToString();
            //syjbk.XSERYTZ1 = dt.Rows[0]["出生日期"].ToString();
            syjbk.SFDM1 = dt.Rows[0]["出生地省"].ToString() + dt.Rows[0]["出生地详细"].ToString();
            syjbk.JGSSDM1 = dt.Rows[0]["籍贯详细"].ToString();
            syjbk.MZDM1 = dt.Rows[0]["民族"].ToString();
            syjbk.SFZH1 = dt.Rows[0]["身份证号"].ToString();
            syjbk.ZYDM1 = dt.Rows[0]["职业"].ToString();
            syjbk.HYZK1 = dt.Rows[0]["婚姻"].ToString();
            syjbk.XZZ1 = dt.Rows[0]["现住址省"].ToString();
            syjbk.XZZDH1 = dt.Rows[0]["现住电话"].ToString();
            syjbk.XZZYB1 = dt.Rows[0]["居住邮编"].ToString();
            syjbk.HKDZ1 = dt.Rows[0]["户口地址详细"].ToString();
            syjbk.HKYB1 = dt.Rows[0]["户口地邮编"].ToString();
            syjbk.GZDW1 = dt.Rows[0]["工作单位名称"].ToString();
            syjbk.DWDZ1 = dt.Rows[0]["工作单位地址"].ToString();
            syjbk.DWDH1 = dt.Rows[0]["单位电话"].ToString();
            syjbk.DWYB1 = dt.Rows[0]["单位邮编"].ToString();
            syjbk.LXRM1 = dt.Rows[0]["联系人姓名"].ToString();
            syjbk.LXGX1 = dt.Rows[0]["联系人关系"].ToString();
            syjbk.LXDZ1 = dt.Rows[0]["联系人地址"].ToString();
            syjbk.LXDH1 = dt.Rows[0]["联系人电话"].ToString();
            syjbk.RYTJ1 = dt.Rows[0]["入院途径"].ToString();
            syjbk.RYRQ1 = dt.Rows[0]["入院时间"].ToString();//入园时间

            syjbk.QZRQ1 = "";//确诊日期
            syjbk.RYKS1 = "";//入院科室
            syjbk.ZKKS1 = "";//转科科室

            //syjbk.QZRQ1 = dt.Rows[0]["出生日期"].ToString();//确诊日期
            //syjbk.RYKS1 = dt.Rows[0]["出生日期"].ToString();//入院科室
            //syjbk.ZKKS1 = dt.Rows[0]["出生日期"].ToString();//转科科室
            syjbk.CYRQ1 = dt.Rows[0]["出院时间"].ToString();//出院时间

            syjbk.CYKS1 = "";//出院科室
            syjbk.CYBQ1 = "";//出院病区

            //syjbk.CYKS1 = dt.Rows[0]["出生日期"].ToString();//出院科室
            //syjbk.CYBQ1 = dt.Rows[0]["出生日期"].ToString();//出院病区
            if (dt.Rows[0]["实际住院天数"].ToString() == "null")
            {
                syjbk.ZYTS1 = 0;
            }
            else
            {
                syjbk.ZYTS1 = Convert.ToInt32(dt.Rows[0]["实际住院天数"].ToString());//住院天数
            }
        }
        #endregion

        #region 获取病案首页费用基本信息
        public void ForminitializationBYFYXS()
        {
            string Url = GetUrl();
            DataTable dt = new DataTable();
            dt = HisService.xmlToTable(GetXML(Url, "com.saptac.basy.service.query.QueryBasyPatFeeInfoService"));
            syjbk.ZFY1 = dt.Rows[0]["总费用"].ToString();
            syjbk.ZFJE1 = dt.Rows[0]["结算自付金额"].ToString();
            syjbk.ZFEIJE1 = dt.Rows[0]["结算自费金额"].ToString();

            //syjbk.QTZF1 = dt.Rows[0]["姓名"].ToString();

            syjbk.YBYLFWF1 = dt.Rows[0]["一般医疗服务费"].ToString();
            syjbk.YBZLCZF1 = dt.Rows[0]["一般治疗操作费"].ToString();
            syjbk.HLF1 = dt.Rows[0]["护理费"].ToString();
            syjbk.QTF1 = dt.Rows[0]["其他费用"].ToString();
            syjbk.BLZDF1 = dt.Rows[0]["病理诊断费"].ToString();
            syjbk.SYSZDF1 = dt.Rows[0]["实验室诊断费"].ToString();
            syjbk.YXXZDF1 = dt.Rows[0]["影像学诊断费"].ToString();
            syjbk.LCZDXMF1 = dt.Rows[0]["临床诊断项目费"].ToString();
            syjbk.FSSZLXMF1 = dt.Rows[0]["非手术治疗项目费"].ToString();
            syjbk.LCWLZLF1 = dt.Rows[0]["临床物理治疗费"].ToString();
            syjbk.SSZLF1 = dt.Rows[0]["手术治疗费"].ToString();
            syjbk.MZF1 = dt.Rows[0]["麻醉费"].ToString();
            syjbk.SSF1 = dt.Rows[0]["手术费"].ToString();
            syjbk.KFF1 = dt.Rows[0]["康复费"].ToString();
            syjbk.ZYZLF1 = dt.Rows[0]["中医治疗费"].ToString();
            syjbk.XYF1 = dt.Rows[0]["西药费"].ToString();
            syjbk.KJYWF1 = dt.Rows[0]["抗菌药物费用"].ToString();
            syjbk.CHENGYF1 = dt.Rows[0]["中成药费"].ToString();//中成药费
            syjbk.CAOYF1 = dt.Rows[0]["中草药费"].ToString();//中草药费
            syjbk.SXF1 = dt.Rows[0]["血费"].ToString();
            syjbk.BDBLZPF1 = dt.Rows[0]["白蛋白类制品费"].ToString();
            syjbk.QDBLZPF1 = dt.Rows[0]["球蛋白类制品费"].ToString();
            syjbk.NXYZLZPF1 = dt.Rows[0]["凝血因子类制品费"].ToString();
            syjbk.XBYZLZPF1 = dt.Rows[0]["细胞因子类制品费"].ToString();
            syjbk.JCYYCXCLF1 = dt.Rows[0]["检查用一次性医用材料费"].ToString();
            syjbk.ZLYYCXCLF1 = dt.Rows[0]["治疗用一次性医用材料费"].ToString();
            syjbk.SSYYCXCLF1 = dt.Rows[0]["手术用一次性医用材料费"].ToString();
            syjbk.QTF2 = dt.Rows[0]["其他费"].ToString();            
        }
        #endregion

        private void button2_Click(object sender, EventArgs e)
        {
            GetSaveXML("123");
        }

        #region 拼接保存XML
        public void GetSaveXML(string Service)
        {

            XmlDocument doc = new XmlDocument();
            doc = HisService.getBaseXml(Service);
            HisService.addDataNode(doc, doc.DocumentElement, "emr_id", "string", "24159050");
            HisService.addDataNode(doc, doc.DocumentElement, "cureno", "string", "24159050");
            HisService.addDataNode(doc, doc.DocumentElement, "doccode", "string", "24159050");
            HisService.addDataNode(doc, doc.DocumentElement, "docname", "string", "24159050");

            XmlNode xmlNode= HisService.addListNode(doc, doc.DocumentElement, "master");
            HisService.addDataNode(doc, xmlNode, "syxh", "int", syjbk.BAHM1);//病案号！！！
            HisService.addDataNode(doc, xmlNode, "cureno", "int", syjbk.BAHM1);//治疗号！！！
            HisService.addDataNode(doc, xmlNode, "yydm", "string", syjbk.BAHM1);//医院代码！！！
            HisService.addDataNode(doc, xmlNode, "brxz", "string", syjbk.BRXZ1);//病人性质！！！
            HisService.addDataNode(doc, xmlNode, "rycs", "int", syjbk.RYCS1.ToString());//入院次数！！！
            HisService.addDataNode(doc, xmlNode, "jglb", "string", syjbk.JGLB1);//机构类别！！！
            HisService.addDataNode(doc, xmlNode, "bahm", "int", syjbk.BAHM1);//病案号
            HisService.addDataNode(doc, xmlNode, "jkkh", "string", syjbk.JKKH1);//健康卡号
            HisService.addDataNode(doc, xmlNode, "brxm", "string", syjbk.BRXM1);//病人姓名
            HisService.addDataNode(doc, xmlNode, "brxb", "string", syjbk.BRXB1);//病人性别
            HisService.addDataNode(doc, xmlNode, "csny", "string", syjbk.CSNY1);//出生年月日
            HisService.addDataNode(doc, xmlNode, "xsnl", "int", syjbk.XSNL1.ToString());//显示年龄
            HisService.addDataNode(doc, xmlNode, "o_gjmc", "string", syjbk.GJDM1);//国籍代码
            HisService.addDataNode(doc, xmlNode, "nl_baby", "string", syjbk.NL_BABY1);//不足1周岁年龄
            HisService.addDataNode(doc, xmlNode, "xsecstz", "string", syjbk.XSECSTZ1);//新生儿出生体重
            HisService.addDataNode(doc, xmlNode, "xserytz", "string", syjbk.XSERYTZ1);//新生儿入院体重
            HisService.addDataNode(doc, xmlNode, "o_qx", "string", syjbk.SFDM1);//出生地
            HisService.addDataNode(doc, xmlNode, "o_jg", "string", syjbk.JGSSDM1);//籍贯代码
            HisService.addDataNode(doc, xmlNode, "o_mz", "string", syjbk.MZDM1);//民族代码
            HisService.addDataNode(doc, xmlNode, "sfzh", "string", syjbk.SFZH1);//身份证号
            HisService.addDataNode(doc, xmlNode, "o_zymc", "string", syjbk.ZYDM1);//职业代码
            HisService.addDataNode(doc, xmlNode, "hyzk", "string", syjbk.HYZK1);//婚姻状况
            HisService.addDataNode(doc, xmlNode, "o_xzz", "string", syjbk.XZZ1);//详细现住址
            HisService.addDataNode(doc, xmlNode, "xzzdh", "string", syjbk.XZZDH1);//现住址电话
            HisService.addDataNode(doc, xmlNode, "xzzyb", "string", syjbk.XZZYB1);//现住址邮编
            HisService.addDataNode(doc, xmlNode, "o_hkdz", "string", syjbk.HKDZ1);//户口地址
            HisService.addDataNode(doc, xmlNode, "hkdh", "string", syjbk.HKDH1);//户口电话
            HisService.addDataNode(doc, xmlNode, "hkyb", "string", syjbk.HKYB1);//户口邮编
            HisService.addDataNode(doc, xmlNode, "gzdw", "string", syjbk.GZDW1);//单位名称  
            HisService.addDataNode(doc, xmlNode, "o_dwdz", "string", syjbk.DWDZ1);//单位地址
            HisService.addDataNode(doc, xmlNode, "dwdh", "string", syjbk.DWDH1);//单位电话
            HisService.addDataNode(doc, xmlNode, "dwyb", "string", syjbk.DWYB1);//单位邮编
            HisService.addDataNode(doc, xmlNode, "lxrm", "string", syjbk.LXRM1);//联系人名
            HisService.addDataNode(doc, xmlNode, "lxgx", "string", syjbk.LXGX1);//联系关系
            HisService.addDataNode(doc, xmlNode, "o_lxrdz", "string", syjbk.LXDZ1);//联系地址
            HisService.addDataNode(doc, xmlNode, "lxdh", "string", syjbk.LXDH1);//联系电话
            HisService.addDataNode(doc, xmlNode, "rytj", "string", syjbk.RYTJ1);//入院途径
            HisService.addDataNode(doc, xmlNode, "ryrq", "string", syjbk.RYRQ1);//入园日期
            HisService.addDataNode(doc, xmlNode, "qzrq", "string", syjbk.QZRQ1);//确诊日期
            HisService.addDataNode(doc, xmlNode, "ryks", "string", syjbk.RYKS1);//入园科室
            HisService.addDataNode(doc, xmlNode, "rybq", "string", syjbk.RYBQ1);//入院病区
            HisService.addDataNode(doc, xmlNode, "zkks", "string", syjbk.ZKKS1);//转科科室
            HisService.addDataNode(doc, xmlNode, "cyrq", "string", syjbk.CYRQ1);//出院日期
            HisService.addDataNode(doc, xmlNode, "cyks", "string", syjbk.CYKS1);//出院科室
            HisService.addDataNode(doc, xmlNode, "cybq", "string", syjbk.CYBQ1);//出院病区
            HisService.addDataNode(doc, xmlNode, "zyts", "int", syjbk.ZYTS1.ToString());//住院天数

            //收集页面保存信息
            //门诊诊断名称
            if (txtMJZZDMC1.Text == "输入诊断")
            {
                syjbk.MJZZDMC1 = "";
            }
            else
            {
                syjbk.MJZZDMC1 = txtMJZZDMC1.Text;
            }
            HisService.addDataNode(doc, xmlNode, "mjzzdmc", "string", syjbk.MZZD_ZY1);

            //门诊诊断编码!!!
            HisService.addDataNode(doc, xmlNode, "mzzdbm", "string", syjbk.MZZDBM1);

            //主要诊断疾病编码!!!
            HisService.addDataNode(doc, xmlNode, "zyzd", "string", syjbk.ZYZD1);

            //治疗结果!!!
            HisService.addDataNode(doc, xmlNode, "zljg", "string", syjbk.ZLJG1);

            //入院时病情!!!
            HisService.addDataNode(doc, xmlNode, "rysbq", "string", syjbk.RYSBQ1);

            //损伤中毒外部原因
            if (txtSSWYMC.Text == "输入原因")
            {
                syjbk.SSWYMC1 = "";
            }
            else
            {
                syjbk.SSWYMC1 = txtSSWYMC.Text;
            }
            HisService.addDataNode(doc, xmlNode, "sswymc", "string", syjbk.SSWYMC1);

            //损伤中毒
            if (txtSSWYMC.Text == "输入诊断")
            {
                syjbk.SSWYMC1 = "";
            }
            else
            {
                syjbk.SSWYMC1 = txtSSWYMC.Text;
            }
            HisService.addDataNode(doc, xmlNode, "sszd", "string", syjbk.SSZD1);

            //病理诊断
            HisService.addDataNode(doc, xmlNode, "blzd", "string", syjbk.BLZD1);

            //病理诊断名称
            HisService.addDataNode(doc, xmlNode, "blzdmc", "string", syjbk.BLZDMC1);

            //病理编号
            HisService.addDataNode(doc, xmlNode, "blbh", "string", syjbk.BLBH1);

            //过敏药物
            HisService.addDataNode(doc, xmlNode, "gmyw", "string", syjbk.GMYW1);

            //药物过敏
            HisService.addDataNode(doc, xmlNode, "ywgm", "string", syjbk.YWGM1);

            //尸检情况
            HisService.addDataNode(doc, xmlNode, "sjqk", "string", syjbk.SJQK1);

            //抢救次数
            HisService.addDataNode(doc, xmlNode, "qjcs", "string", syjbk.QJCS1);

            //成功次数
            HisService.addDataNode(doc, xmlNode, "cgcs", "string", syjbk.CGCS1);

            //血型代码
            HisService.addDataNode(doc, xmlNode, "xxdm", "string", syjbk.XXDM1);

            //RH检验
            HisService.addDataNode(doc, xmlNode, "rhjy", "string", syjbk.RHJY1);

            //输血反应
            HisService.addDataNode(doc, xmlNode, "sxfy", "string", syjbk.SXFY1);

            //妊娠梅毒筛查
            HisService.addDataNode(doc, xmlNode, "rsmdsc", "string", syjbk.RSMDSC1);

            //产后出血是否
            HisService.addDataNode(doc, xmlNode, "chcxsf", "string", syjbk.CHCXSF1);

            //暂为空内容
            HisService.addDataNode(doc, xmlNode, "kzr", "string", syjbk.KZR1);//科主任
            HisService.addDataNode(doc, xmlNode, "zyys", "string", syjbk.ZYYS1);//住院医师
            HisService.addDataNode(doc, xmlNode, "zzys", "string", syjbk.ZZYS1);//主治医师
            HisService.addDataNode(doc, xmlNode, "zrys", "string", syjbk.ZRYS1);//主任医师
            HisService.addDataNode(doc, xmlNode, "zrhs", "string", syjbk.ZRHS1);//责任护士
            HisService.addDataNode(doc, xmlNode, "jxys", "string", syjbk.JXYS1);//进修医师
            HisService.addDataNode(doc, xmlNode, "sxys2", "string", syjbk.SXYS2);//实习医师
            HisService.addDataNode(doc, xmlNode, "bmy", "string", syjbk.BMY1);//编码员

            //病案质量（页面获取）
            HisService.addDataNode(doc, xmlNode, "bazl", "string", syjbk.BAZL1);//病案质量

            //暂为空内容
            HisService.addDataNode(doc, xmlNode, "zkys", "string", syjbk.ZKYS1);//质控医师
            HisService.addDataNode(doc, xmlNode, "zkhs", "string", syjbk.ZKHS1);//质控护士

            //质控日期（页面获取）
            HisService.addDataNode(doc, xmlNode, "barq", "string", syjbk.BARQ1);//质控日期

            //质控日期  年
            HisService.addDataNode(doc, xmlNode, "o_zk_y", "string", syjbk.BARQ1);

            //质控日期  月
            HisService.addDataNode(doc, xmlNode, "o_zk_m", "string", syjbk.BARQ1);

            //质控日期  日
            HisService.addDataNode(doc, xmlNode, "o_zk_d", "string", syjbk.BARQ1);

            //离院方式
            HisService.addDataNode(doc, xmlNode, "lyfs", "string", syjbk.LYFS1);

            //拟接收医疗机构(医嘱转院)
            HisService.addDataNode(doc, xmlNode, "jsyljg1", "string", syjbk.JSYLJG1);

            //拟接收医疗机构(医嘱转社区卫生院/乡镇卫生院)
            HisService.addDataNode(doc, xmlNode, "jsyljg2", "string", syjbk.JSYLJG2);

            //是否有出院31天内再住院计划
            HisService.addDataNode(doc, xmlNode, "zzyjh", "string", syjbk.ZZYJH1);

            //入院前昏迷天数
            HisService.addDataNode(doc, xmlNode, "hmday1", "string", syjbk.HMDAY1);

            //入院前昏迷小时数
            HisService.addDataNode(doc, xmlNode, "hmhour1", "string", syjbk.HMHOUR1);

            //入院前昏迷分钟数
            HisService.addDataNode(doc, xmlNode, "hmmin1", "string", syjbk.HMMIN1);

            //入院后昏迷天数
            HisService.addDataNode(doc, xmlNode, "hmday2", "string", syjbk.HMDAY2);

            //入院后昏迷小时数
            HisService.addDataNode(doc, xmlNode, "hmhour2", "string", syjbk.HMHOUR2);

            //入院后昏迷分钟数
            HisService.addDataNode(doc, xmlNode, "hmmin2", "string", syjbk.HMMIN2);


            HisService.addDataNode(doc, xmlNode, "zfy", "double", syjbk.ZFY1);//住院总费用
            HisService.addDataNode(doc, xmlNode, "zfje", "double", syjbk.ZFJE1);//自付金额
            HisService.addDataNode(doc, xmlNode, "zfeije", "double", syjbk.ZFEIJE1);//自费金额
            HisService.addDataNode(doc, xmlNode, "qtzf", "double", syjbk.QTZF1);//其他支付
            HisService.addDataNode(doc, xmlNode, "ybylfwf", "double", syjbk.YBYLFWF1);//一般医疗服务费
            HisService.addDataNode(doc, xmlNode, "ybzlczf", "double", syjbk.YBZLCZF1);//一般治疗操作费
            HisService.addDataNode(doc, xmlNode, "hlf", "double", syjbk.HLF1);//护理费
            HisService.addDataNode(doc, xmlNode, "qtf1", "double", syjbk.QTF1);//其他费用
            HisService.addDataNode(doc, xmlNode, "blzdf", "double", syjbk.BLZDF1);//病理诊断费
            HisService.addDataNode(doc, xmlNode, "syszdf", "double", syjbk.SYSZDF1);//实验室诊断费
            HisService.addDataNode(doc, xmlNode, "yxxzdf", "double", syjbk.YXXZDF1);//影像学诊断费
            HisService.addDataNode(doc, xmlNode, "lczdxmf", "double", syjbk.LCZDXMF1);//临床诊断项目费
            HisService.addDataNode(doc, xmlNode, "fsszlxmf", "double", syjbk.FSSZLXMF1);//非手术治疗项目费用
            HisService.addDataNode(doc, xmlNode, "lcwlzlf", "double", syjbk.LCWLZLF1);//临床物理治疗费
            HisService.addDataNode(doc, xmlNode, "sszlf", "double", syjbk.SSZLF1);//手术治疗费
            HisService.addDataNode(doc, xmlNode, "ssf", "double", syjbk.SSF1);//手术费
            HisService.addDataNode(doc, xmlNode, "mzf", "double", syjbk.MZF1);//麻醉费
            HisService.addDataNode(doc, xmlNode, "kff", "double", syjbk.KFF1);//康复费
            HisService.addDataNode(doc, xmlNode, "zyzlf", "double", syjbk.ZYZLF1);//中医治疗费
            HisService.addDataNode(doc, xmlNode, "xyf", "double", syjbk.XYF1);//西药费
            HisService.addDataNode(doc, xmlNode, "kjywf", "double", syjbk.KJYWF1);//抗菌药物费用
            HisService.addDataNode(doc, xmlNode, "chengyf", "double", syjbk.CHENGYF1);//中成药费
            HisService.addDataNode(doc, xmlNode, "caoyf", "double", syjbk.CAOYF1);//中草药费
            HisService.addDataNode(doc, xmlNode, "sxf", "double", syjbk.SXF1);//血费
            HisService.addDataNode(doc, xmlNode, "bdblzpf", "double", syjbk.BDBLZPF1);//白蛋白类制品费
            HisService.addDataNode(doc, xmlNode, "qdblzpf", "double", syjbk.QDBLZPF1);//球蛋白类制品费
            HisService.addDataNode(doc, xmlNode, "nxyzlzpf", "double", syjbk.NXYZLZPF1);//凝血因子类制品费
            HisService.addDataNode(doc, xmlNode, "xbyzlzpf", "double", syjbk.XBYZLZPF1);//细胞因子类制品费
            HisService.addDataNode(doc, xmlNode, "jcyycxclf", "double", syjbk.JCYYCXCLF1);//检查用一次性医用材料费
            HisService.addDataNode(doc, xmlNode, "zlyycxclf", "double", syjbk.ZLYYCXCLF1);//治疗用一次性医用材料费
            HisService.addDataNode(doc, xmlNode, "ssyycxclf", "double", syjbk.SSYYCXCLF1);//手术用一次性医用材料费
            HisService.addDataNode(doc, xmlNode, "qtf2", "double", syjbk.QTF2);//其他费

            HisService.addDataNode(doc, xmlNode, "jlzt", "double", "0.00");//记录状态

            XmlNode xmlNodeXSR = HisService.addListNode(doc, doc.DocumentElement, "xsr");

            //病案首页新生儿信息
            HisService.addDataNode(doc, xmlNodeXSR, "syxh", "int", syyrk.SYXH1);//序号（病案号）
            HisService.addDataNode(doc, xmlNodeXSR, "cureno", "int", syjbk.BAHM1);//治疗号！！！
            HisService.addDataNode(doc, xmlNodeXSR, "yexh", "string", syyrk.YEXH1);//婴儿序号！！！
            HisService.addDataNode(doc, xmlNodeXSR, "yexb", "string", syyrk.YEXB1);//婴儿性别
            HisService.addDataNode(doc, xmlNodeXSR, "yetz", "string", syyrk.YETZ1);//婴儿体重
            HisService.addDataNode(doc, xmlNodeXSR, "jc_ch", "string", syyrk.JC_CH1);//检查CH
            HisService.addDataNode(doc, xmlNodeXSR, "jc2", "string", syyrk.JC2);//PKU检查
            HisService.addDataNode(doc, xmlNodeXSR, "jc_cah", "string", syyrk.JC_CAH1);//检查CAH
            HisService.addDataNode(doc, xmlNodeXSR, "jc_g6pd", "string", syyrk.JC_G6PD1);//检查G6PD
            HisService.addDataNode(doc, xmlNodeXSR, "jc3", "string", syyrk.JC3);//听力

            if (txtZCCYZD1.Text == "输入诊断")
            {
                XmlNode xmlNodeZD1 = HisService.addListNode(doc, doc.DocumentElement, "diagnose");

                syzdk.ZDMC1 = txtZCCYZD1.Text;
                syzdk.RYBQ1 = txtZCRYCQ1.Text;
                syzdk.ZGQK1 = txtZCCYCQ1.Text;

                HisService.addDataNode(doc, xmlNodeZD1, "syxh", "int", syjbk.BAHM1);//序号（病案号）
                HisService.addDataNode(doc, xmlNodeZD1, "cureno", "int", syjbk.BAHM1);//治疗号！！！
                HisService.addDataNode(doc, xmlNodeZD1, "zdxh", "string", syzdk.ZDXH1);//诊断序号
                HisService.addDataNode(doc, xmlNodeZD1, "zddm", "string", syzdk.ZDDM1);//诊断代码
                HisService.addDataNode(doc, xmlNodeZD1, "zdmc", "string", syzdk.ZDMC1);//诊断名称
                HisService.addDataNode(doc, xmlNodeZD1, "rybq", "string", syzdk.RYBQ1);//入院病情
                HisService.addDataNode(doc, xmlNodeZD1, "zgqk", "string", syzdk.ZGQK1);//出院情况
            }

            if (txtSSCZMC1.Text == "输入诊断")
            {
                XmlNode xmlNodeSS1 = HisService.addListNode(doc, doc.DocumentElement, "operation");

                syssk.SSMC1 = txtSSCZMC1.Text;
                 syssk.SSRQ1 = dtpSS1.Text;
                 syssk.SSJB1 = txtSSJB1.Text;
                 syssk.SSYS1 = txtSSYS1.Text;
                 syssk.SSYZ1 = txtSSYZ1.Text;
                 syssk.SSEZ1 = txtSSEZ1.Text;
                 syssk.YHLB1 = txtYHDJ1.Text;
                 syssk.MZDM1 = txtMZFS1.Text;
                 syssk.MZYS1 = txtMZYS1.Text;


                //syxh	    number(9)		序号（病案号）
                //cureno    number(10)		治疗号
                //ssxh varchar2(2),		手术序号   手术的排序序号，类似于1,2,3排列
                //ssrq varchar2(16),		手术日期   格式类似于2012121200:00:01
                //ssdm varchar2(20),		手术代码
                //ssjb varchar2(4),		手术级别
                //ssmc varchar2(64),		手术名称
                //ssys varchar2(6),		主刀医生
                //ssyz varchar2(6),		手术一助
                //ssez varchar2(6),		手术二助
                //yhlb varchar2(4),		切口愈合等级	
                //mzdm varchar2(4),		麻醉方式
                //mzys varchar2(4)		麻醉医生

                HisService.addDataNode(doc, xmlNodeSS1, "syxh", "int", syjbk.BAHM1);//序号（病案号）
                HisService.addDataNode(doc, xmlNodeSS1, "cureno", "int", syjbk.BAHM1);//治疗号！！！
                HisService.addDataNode(doc, xmlNodeSS1, "ssxh", "string", syssk.SSXH1);//手术序号
                HisService.addDataNode(doc, xmlNodeSS1, "ssrq", "string", syssk.SSRQ1);//手术日期
                HisService.addDataNode(doc, xmlNodeSS1, "ssdm", "string", syssk.SSDM1);//手术代码
                HisService.addDataNode(doc, xmlNodeSS1, "ssjb", "string", syssk.SSJB1);//手术级别
                HisService.addDataNode(doc, xmlNodeSS1, "ssmc", "string", syssk.SSXH1);//手术名称
                HisService.addDataNode(doc, xmlNodeSS1, "ssys", "string", syssk.SSRQ1);//主刀医生
                HisService.addDataNode(doc, xmlNodeSS1, "ssyz", "string", syssk.SSDM1);//手术一助
                HisService.addDataNode(doc, xmlNodeSS1, "ssez", "string", syssk.SSJB1);//手术二助
                HisService.addDataNode(doc, xmlNodeSS1, "yhlb", "string", syssk.YHLB1);//切口愈合等级
                HisService.addDataNode(doc, xmlNodeSS1, "mzdm", "string", syssk.MZDM1);//麻醉方式
                HisService.addDataNode(doc, xmlNodeSS1, "mzys", "string", syssk.MZYS1);//麻醉医生
            }


            XmlDocument doc1 = new XmlDocument();
            //doc1 = HisService.executeHisService(Url, doc.InnerXml).XML;
        }
        #endregion

        //public void GetValue()
        //{ 
            
        //}

        private void DrawingChoice(Graphics g, int x,int y)//画勾函数
        {

            g.DrawLine(drawchoicePen, new PointF(Convert.ToInt32(x), Convert.ToInt32(y + 10)), new PointF(Convert.ToInt32((x + 10)), Convert.ToInt32((y + 15))));//勾下折线
            g.DrawLine(drawchoicePen, new PointF(Convert.ToInt32((x + 10)), Convert.ToInt32((y + 15))), new PointF(Convert.ToInt32((x + 25)), Convert.ToInt32((y))));//勾上折线
        }



        private int GetCenter(int rectLength, int textLength)
        {
            int offest = 0;
            if (rectLength > textLength)
            {
                offest = (rectLength - textLength) / 2;
            }
            return offest;
        }

        private void Form3_Load(object sender, EventArgs e)
        {
            //GetValue();
            //ForminitializationBYJBXS();
            //ForminitializationBYFYXS();
        }

        private void Form3_Paint(object sender, PaintEventArgs e)
        {
            //FormAndDocumentPaint(e.Graphics);  
        }

        

        public XmlDocument GetXML(string Url,string Service)
        {
            XmlDocument doc = new XmlDocument();
            doc = HisService.getBaseXml(Service);
            HisService.addDataNode(doc, doc.DocumentElement, "cureno", "string", "24159050");
            XmlDocument doc1 = new XmlDocument();
            doc1 = HisService.executeHisService(Url, doc.InnerXml).XML;
            return doc1;
            //HisService.addDataNode(doc, doc.DocumentElement, "emr_id", "string", "24159050");
            //HisService.addDataNode(doc, doc.DocumentElement, "cureno", "string", "24159050");
            //HisService.addDataNode(doc, doc.DocumentElement, "doccode", "string", "24159050");

            //return doc;
            //XmlDocument doc1 = new XmlDocument();
            //doc1 = HisService.executeHisService(Url, doc.InnerXml).XML;
            //Hashtable table = new Hashtable();  
            //DataTable dt = new DataTable();
            //dt = HisService.xmlToTable(doc1);

            //XmlNodeList ls_nodes = HisService.getChildListNodes(doc1.DocumentElement);
            //foreach (XmlNode lsnode in ls_nodes)
            //{
            //    XmlNodeList data_nodes = HisService.getChildDataNodes(lsnode);
            //    if (data_nodes.Count > 0)
            //    {
            //        XmlNode datanode = data_nodes[0];
            //        String val = datanode.InnerText;        
            //        table.Add(datanode.Attributes["id"].InnerText, val);
            //        GetFYValue(datanode.Attributes["id"].InnerText);
            //    }
            //}

        }

        public void GetFYValue(string Number)
        {
            Saptac.BASY.Common.ExportFun aa = new Saptac.BASY.Common.ExportFun();
            BasyInfo info = new BasyInfo();
            aa.getPatBaseInfo(info, null);
            if (info.Result != 1)
            {
                throw new Exception(info.Errmessage);
            }
            else
            { 
                
            }
            aa.getPatFeeInfo(info, null);
            if (info.Result != 1)
                throw new Exception(info.Errmessage);
            aa.getPatDocumentInfo(info, null,null);
            if (info.Result != 1)
                throw new Exception(info.Errmessage);

            #region 注释
            //Hashtable table = new Hashtable();
            //BA_SYJBK aa = null;
            //table.Add("1", new BA_SYJBK().ZYDM1);
            //table.Add("2", new BA_SYJBK());
            //if (table.ContainsKey("0"))
            //    aa = (BA_SYJBK)table["0"];
            //switch (Number)
            //{
            //    case "1":
            //        {
            //            paramName = "出院结算标志";
            //            break;
            //        }
            //    case "2":
            //        {
                        
            //            paramName = "总费用";
            //            break;
            //        }
            //    case "3":
            //        {
            //            paramName = "结算自付金额";
            //            break;
            //        }
            //    case "4":
            //        {
            //            paramName = "发生自付金额";
            //            break;
            //        }
            //    case "5":
            //        {
            //            paramName = "一般医疗服务费";
            //            break;
            //        }
            //    case "6":
            //        {
            //            paramName = "一般治疗操作费";
            //            break;
            //        }
            //    case "7":
            //        {
            //            paramName = "护理费";
            //            break;
            //        }
            //    case "8":
            //        {
            //            paramName = "其他费用";
            //            break;
            //        }
            //    case "9":
            //        {
            //            paramName = "病理诊断费";
            //            break;
            //        }
            //    case "10":
            //        {
            //            paramName = "实验室诊断费";
            //            break;
            //        }
            //    case "11":
            //        {
            //            paramName = "影像学诊断费";
            //            break;
            //        }
            //    case 12:
            //        {
            //            paramName = "临床诊断项目费";
            //            break;
            //        }
            //    case "13":
            //        {
            //            paramName = "非手术治疗项目费";
            //            break;
            //        }
            //    case "14":
            //        {
            //            paramName = "临床物理治疗费";
            //            break;
            //        }
            //    case "15":
            //        {
            //            paramName = "手术治疗费";
            //            break;
            //        }
            //    case "16":
            //        {
            //            paramName = "麻醉费";
            //            break;
            //        }
            //    case "17":
            //        {
            //            paramName = "手术费";
            //            break;
            //        }
            //    case "18":
            //        {
            //            paramName = "康复费";
            //            break;
            //        }
            //    case "19":
            //        {
            //            paramName = "中医治疗费";
            //            break;
            //        }
            //    case "20":
            //        {
            //            paramName = "西药费";
            //            break;
            //        }
            //    case "21":
            //        {
            //            paramName = "抗菌药物费用";
            //            break;
            //        }
            //    case "22":
            //        {
            //            paramName = "中成药费";
            //            break;
            //        }
            //    case "23":
            //        {
            //            paramName = "中草药费";
            //            break;
            //        }
            //    case "24":
            //        {
            //            paramName = "血费";
            //            break;
            //        }
            //    case "25":
            //        {
            //            paramName = "白蛋白类制品费";
            //            break;
            //        }
            //    case "26":
            //        {
            //            paramName = "球蛋白类制品费";
            //            break;
            //        }
            //    case "27":
            //        {
            //            paramName = "凝血因子类制品费";
            //            break;
            //        }
            //    case "28":
            //        {
            //            paramName = "细胞因子类制品费";
            //            break;
            //        }
            //    case "29":
            //        {
            //            paramName = "检查用一次性医用材料费";
            //            break;
            //        }
            //    case "30":
            //        {
            //            paramName = "治疗用一次性医用材料费";
            //            break;
            //        }
            //    case "31":
            //        {
            //            paramName = "手术用一次性医用材料费";
            //            break;
            //        }
            //    case "32":
            //        {
            //            paramName = "其他费";
            //            break;
            //        }
            //    default:
            //        paramName = "0";

            //}
            #endregion

        }

        private void ReturnValue()
        { 
            
        }

        private void GetSetting()
        { 
            
        }

        private void panel1_Paint_1(object sender, PaintEventArgs e)
        {
            FormAndDocumentPaint(e.Graphics);  
        }

        private void label1_Send(object sender, EventArgs e, Graphics g)
        {
            DrawingChoice(g, Location.X, Location.Y);   
        }

        private void label1_Click(object sender, EventArgs e)
        {
            
        }

        private void txtZCCYZD1_MouseClick(object sender, MouseEventArgs e)
        {
            Form4 Form4 = new Form4();
            Form4.StartPosition = FormStartPosition.CenterParent;
            Form4.ShowDialog(this);
            
        }

        private void txtZCRYCQ1_MouseClick(object sender, MouseEventArgs e)
        {
            Form6 Form6 = new Form6();
            Form6.StartPosition = FormStartPosition.CenterParent;
            Form6.ShowDialog(this);
        }

        private void txtZCCYCQ1_MouseClick(object sender, MouseEventArgs e)
        {
            Form7 Form7 = new Form7();
            Form7.StartPosition = FormStartPosition.CenterParent;
            Form7.ShowDialog(this);
        }

        private void txtSSYS1_MouseClick(object sender, MouseEventArgs e)
        {
            Form5 Form5 = new Form5();
            Form5.StartPosition = FormStartPosition.CenterParent;
            Form5.ShowDialog(this);
        }

        private void button1_Click(object sender, EventArgs e)
        {
            PrintWithoutPreview();
        }

        public void PrintWithoutPreview()
        {
            printDocument = new System.Drawing.Printing.PrintDocument();
            SetMargin();
            printPreviewDialog1.Document = printDocument;
            printPreviewDialog1.Show();
            //PaperSize size = new PaperSize("mypage", 960, 800);
            printDocument.PrintPage += new PrintPageEventHandler(this.printdocument_printpage);//事件的重载
            //printDocument.DefaultPageSettings.PaperSize = size;
            printDocument.Print();
        }

        private void printdocument_printpage(object sender, System.Drawing.Printing.PrintPageEventArgs e)
        {
            
            zoom = 0.5;
            double zoomX = 0.85;
            double zoomY = 0.98;
            SetFontForPrint();
            int titlerowpitch = 60;

            #region 打印
            if (page == 1)
            {
                #region 第一行 医疗机构，组织机构代码

                #region 医疗机构
                e.Graphics.DrawString(/*"医疗机构"*/ syjbk.ZLMC1, printTitlefont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 500) * zoom * zoomX), Convert.ToInt32((startPointY + 0) * zoom * zoomY)));//字符：医疗机构
                e.Graphics.DrawString("复旦大学附属华山医院", printTitlefont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 750) * zoom * zoomX), Convert.ToInt32((startPointY + 0) * zoom * zoomY)));//标题：机构类别填充
                e.Graphics.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 700) * zoom * zoomX), Convert.ToInt32((startPointY + 40) * zoom)), new PointF(Convert.ToInt32((startPointX + 1250) * zoom * zoomX), Convert.ToInt32((startPointY + 40) * zoom * zoomY)));//下划线：机构类别填充横线
                #endregion

                #region 组织机构代码
                e.Graphics.DrawString("（组织机构代码：", printTitlefont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1250) * zoom * zoomX), Convert.ToInt32((startPointY + 0) * zoom * zoomY)));//标题：组织机构代码
                e.Graphics.DrawString("42500653-9" + ")", printTitlefont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1580) * zoom * zoomX), Convert.ToInt32((startPointY + 0) * zoom * zoomY)));//字符：组织机构代码填充
                e.Graphics.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 1580) * zoom * zoomX), Convert.ToInt32((startPointY + 40) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 1815) * zoom * zoomX), Convert.ToInt32((startPointY + 40) * zoom * zoomY)));//下划线：组织机构代码填充横线
                #endregion

                #endregion

                #region 第二行 医疗付费方式 标题 住院病案首页

                #region 医疗付费方式
                e.Graphics.DrawString("医疗付费方式 " + "全自费", printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 0) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch) * zoom * zoomY)));//标题+字符：医疗付费方式
                #endregion

                #region 标题 住院病案首页
                e.Graphics.DrawString("住院病案首页", printTitleLargefont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 0 + 800) * zoom * zoomX), Convert.ToInt32((startPointY + 0 + titlerowpitch) * zoom * zoomY)));//标题：住院病案首页
                #endregion

                #endregion

                #region 第三行 健康卡号 住院次数 病案号

                #region 健康卡号
                e.Graphics.DrawString("健康卡号" + syjbk.JKKH1, printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 0) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 2) * zoom * zoomY)));//标题+字符：健康卡号
                #endregion

                #region 住院次数
                e.Graphics.DrawString("第" + "1" + "次住院", printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 0 + 820) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 2) * zoom * zoomY)));//标题+字符：住院次数
                #endregion

                #region 病案号
                e.Graphics.DrawString("病案号：" + syjbk.BAHM1, printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 0 + 1550) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 2) * zoom * zoomY)));//标题+字符：病案号+病案号码
                #endregion

                #region 第三行下划线
                e.Graphics.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 0) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 2) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 1850) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 2) * zoom * zoomY)));//下划线：第三行整体填充横线
                #endregion

                #endregion

                #region 第四行 姓名 性别 出生日期 年龄 国籍

                #region 姓名
                e.Graphics.DrawString("姓名", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 0) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 3) * zoom * zoomY)));//标题：姓名
                e.Graphics.DrawString(syjbk.BRXM1, printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 0 + 90) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 3) * zoom * zoomY)));//字符：姓名填充
                e.Graphics.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 80) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 3) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 300) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 3) * zoom * zoomY)));//下划线：姓名填充横线
                #endregion

                #region 性别
                e.Graphics.DrawString("性别", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 350) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 3) * zoom * zoomY)));//标题：性别
                e.Graphics.DrawRectangle(drawlinenPen, Convert.ToInt32((startPointX + 440) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 3) * zoom * zoomY), 15, 15);//图形：性别方框
                e.Graphics.DrawString("1.男", printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 490) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 3) * zoom * zoomY)));//标题：性别 1.男
                e.Graphics.DrawString("2.女", printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 580) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 3) * zoom * zoomY)));//标题：性别 2.女

                #region 性别打勾判定
                //if (false)
                //{
                //    DrawingChoice(g, Convert.ToInt32((startPointX + 490) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 3) * zoom * zoomY));//勾：男性
                //}
                //else
                //{
                //    DrawingChoice(g, Convert.ToInt32((startPointX + 580) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 3) * zoom * zoomY));//勾：女性
                //}
                #endregion

                #endregion

                #region 出生日期
                e.Graphics.DrawString("出生日期", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 700) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 3) * zoom * zoomY)));//标题：出生日期
                e.Graphics.DrawString(syjbk.CSNY1, printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 900) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 3) * zoom * zoomY)));//字符：出生日期填充
                e.Graphics.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 850) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 3) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 1120) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 3) * zoom * zoomY)));//下划线：出生日期填充横线
                #endregion

                #region 年龄
                e.Graphics.DrawString("年龄", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1200) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 3) * zoom * zoomY)));//标题：年龄
                e.Graphics.DrawString(syjbk.XSNL1.ToString(), printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1340) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 3) * zoom * zoomY)));//字符：年龄填充
                e.Graphics.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 1320) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 3) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 1440) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 3) * zoom * zoomY)));//下划线：年龄填充横线
                #endregion

                #region 国籍
                e.Graphics.DrawString("国籍", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1540) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 3) * zoom * zoomY)));//标题：国籍
                e.Graphics.DrawString(syjbk.GJDM1, printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1640) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 3) * zoom * zoomY)));//字符：国籍填充
                e.Graphics.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 1620) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 3) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 1800) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 3) * zoom * zoomY)));//下划线：国籍填充横线
                #endregion

                #endregion

                #region 第五行 年龄不足一周岁 新生儿出生体重 新生儿入院体重

                #region 年龄不足一周岁
                e.Graphics.DrawString("(年龄不足一周岁的)", printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 0) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 4) * zoom * zoomY)));//标题：（年龄不足一周岁的）
                e.Graphics.DrawString("年龄", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 350) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 4) * zoom * zoomY)));//标题：年龄
                e.Graphics.DrawString(syjbk.NL_BABY1, printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 0 + 480) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 4) * zoom * zoomY)));//字符：年龄填充
                e.Graphics.DrawString("月", printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 0 + 550) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 4) * zoom * zoomY)));//标题：月
                e.Graphics.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 450) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 4) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 550) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 4) * zoom * zoomY)));//下划线：年龄不足一周岁填充横线
                #endregion

                #region 新生儿出生体重
                e.Graphics.DrawString("新生儿出生体重", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 680) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 4) * zoom * zoomY)));//标题：新生儿出生体重
                e.Graphics.DrawString(syjbk.XSECSTZ1, printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 0 + 980) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 4) * zoom * zoomY)));//字符：体重填充
                e.Graphics.DrawString("克", printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 0 + 1100) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 4) * zoom * zoomY)));//标题：克
                e.Graphics.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 950) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 4) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 1100) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 4) * zoom * zoomY)));//下划线：新生儿出生体重填充横线
                #endregion

                #region 新生儿入院体重
                e.Graphics.DrawString("新生儿入院体重", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1350) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 4) * zoom * zoomY)));//标题：新生儿入院体重
                e.Graphics.DrawString(syjbk.XSERYTZ1, printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 0 + 1650) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 4) * zoom * zoomY)));//字符：体重填充
                e.Graphics.DrawString("克", printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 0 + 1780) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 4) * zoom * zoomY)));//标题：克
                e.Graphics.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 1590) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 4) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 1780) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 4) * zoom * zoomY)));//下划线：新生儿入院体重填充横线
                #endregion

                #endregion

                #region 第六行 出生地 籍贯 民族

                #region 出生地
                e.Graphics.DrawString("出生地", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 0) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 5) * zoom * zoomY)));//标题：出生地
                e.Graphics.DrawString(syjbk.SFDM1, printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 0 + 120) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 5) * zoom * zoomY)));//字符：出生地填充
                e.Graphics.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 120) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 5) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 1300) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 5) * zoom * zoomY)));//下划线：出生地填充横线
                #endregion

                #region 籍贯
                e.Graphics.DrawString("籍贯", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1330) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 5) * zoom * zoomY)));//标题：籍贯
                e.Graphics.DrawString(syjbk.JGSSDM1, printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1430) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 5) * zoom * zoomY)));//字符：籍贯填充
                e.Graphics.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 1410) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 5) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 1580) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 5) * zoom * zoomY)));//下划线：籍贯填充横线
                #endregion

                #region 民族
                e.Graphics.DrawString("民族", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1600) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 5) * zoom * zoomY)));//标题：民族
                e.Graphics.DrawString(syjbk.MZDM1, printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1700) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 5) * zoom * zoomY)));//字符：民族填充
                e.Graphics.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 1680) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 5) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 1820) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 5) * zoom * zoomY)));//下划线：民族填充横线
                #endregion

                #endregion

                #region 第七行 身份证号 职业 婚姻

                #region 身份证号
                e.Graphics.DrawString("身份证号", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 0) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 6) * zoom * zoomY)));//标题：身份证号
                e.Graphics.DrawString(syjbk.SFZH1, printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 0 + 170) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 6) * zoom * zoomY)));//字符：身份证号填充
                e.Graphics.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 155) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 6) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 530) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 6) * zoom * zoomY)));//下划线：身份证号填充横线
                #endregion

                #region 职业
                e.Graphics.DrawString("职业", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 560) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 6) * zoom * zoomY)));//标题：职业
                e.Graphics.DrawString(syjbk.ZYDM1, printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 0 + 660) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 6) * zoom * zoomY)));//字符：职业填充
                e.Graphics.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 650) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 6) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 900) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 6) * zoom * zoomY)));//下划线：职业填充横线
                #endregion

                #region 婚姻
                e.Graphics.DrawString("婚姻", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 950) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 6) * zoom * zoomY)));//标题：婚姻
                e.Graphics.DrawRectangle(drawlinenPen, Convert.ToInt32((startPointX + 1080) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 6) * zoom * zoomY), 15, 15);//图形：婚姻方框
                string HYZKDM = "";
                e.Graphics.DrawString("1.未婚", printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1150) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 6) * zoom * zoomY)));//标题：1.未婚
                e.Graphics.DrawString("2.已婚", printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1290) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 6) * zoom * zoomY)));//标题：2.已婚
                e.Graphics.DrawString("3.丧偶", printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1430) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 6) * zoom * zoomY)));//标题：3.丧偶
                e.Graphics.DrawString("4.离婚", printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1570) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 6) * zoom * zoomY)));//标题：4.离婚
                e.Graphics.DrawString("9.其他", printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1710) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 6) * zoom * zoomY)));//标题：9.其他

                switch (syjbk.HYZK1)
                {
                    case "未婚":
                        HYZKDM = "1";
                        break;
                    case "已婚":
                        HYZKDM = "2";
                        break;
                    case "丧偶":
                        HYZKDM = "3";
                        break;
                    case "离婚":
                        HYZKDM = "4";
                        break;
                    case "其他":
                        HYZKDM = "9";
                        break;
                    default:
                        HYZKDM = "9";
                        break;
                }

                e.Graphics.DrawString(HYZKDM, printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1080) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 6) * zoom * zoomY)));//填充内容：婚姻
                #endregion

                #endregion

                #region 第八行 现住址 现住址电话 现住址邮编

                #region 现住址
                e.Graphics.DrawString("现住址", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 0) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 7) * zoom * zoomY)));//标题：现住址
                e.Graphics.DrawString(syjbk.XZZ1, printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 0 + 120) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 7) * zoom * zoomY)));//字符：现住址填充
                e.Graphics.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 155) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 7) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 1300) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 7) * zoom * zoomY)));//下划线：现住址填充横线
                #endregion

                #region 现住址电话
                e.Graphics.DrawString("电话", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1330) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 7) * zoom * zoomY)));//标题：现住址电话
                e.Graphics.DrawString(syjbk.XZZDH1, printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1430) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 7) * zoom * zoomY)));//字符：现住址电话填充
                e.Graphics.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 1410) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 7) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 1580) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 7) * zoom * zoomY)));//下划线：现住址电话填充横线
                #endregion

                #region 现住址邮编
                e.Graphics.DrawString("邮编", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1600) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 7) * zoom * zoomY)));//标题：现住址邮编
                e.Graphics.DrawString(syjbk.XZZYB1, printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1700) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 7) * zoom * zoomY)));//字符：现住址邮编填充
                e.Graphics.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 1680) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 7) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 1820) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 7) * zoom * zoomY)));//下划线：现住址邮编填充横线
                #endregion

                #endregion

                #region 第九行 户口地址 /*户口电话*/ 户口邮编

                #region 户口住址
                e.Graphics.DrawString("户口住址", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 0) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 8) * zoom * zoomY)));//标题：户口住址
                e.Graphics.DrawString(syjbk.HKDZ1, printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 0 + 150) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 8) * zoom * zoomY)));//字符：户口地址填充
                e.Graphics.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 145) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 8) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + /*+ 1300 */ 1580) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 8) * zoom * zoomY)));//下划线：户口住址填充横线
                #endregion

                #region /*户口电话*/
                //e.Graphics.DrawString("电话", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1330) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 8) * zoom * zoomY)));//标题：户口住址电话
                //e.Graphics.DrawString("64362222", printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1430) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 8) * zoom * zoomY)));//字符：户口住址电话填充
                //e.Graphics.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 1410) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 8) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 1580) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 8) * zoom * zoomY)));//下划线：户口住址电话填充横线
                #endregion

                #region 户口邮编
                e.Graphics.DrawString("邮编", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1600) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 8) * zoom * zoomY)));//标题：户口住址邮编
                e.Graphics.DrawString(syjbk.HKYB1, printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1700) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 8) * zoom * zoomY)));//字符：户口住址邮编填充
                e.Graphics.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 1680) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 8) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 1820) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 8) * zoom * zoomY)));//下划线：户口住址邮编填充横线
                #endregion

                #endregion

                #region 第十行 工作单位及地址 单位电话 邮编

                #region 工作单位及地址
                e.Graphics.DrawString("工作单位及地址", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 0) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 9) * zoom * zoomY)));//标题：工作单位及地址
                e.Graphics.DrawString(syjbk.GZDW1 + syjbk.DWDZ1, printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 0 + 260) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 9) * zoom * zoomY)));//字符：工作单位住址填充
                e.Graphics.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 250) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 9) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 1250) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 9) * zoom * zoomY)));//下划线：工作单位填充横线
                #endregion

                #region 工作单位电话
                e.Graphics.DrawString("单位电话", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1260) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 9) * zoom * zoomY)));//标题：工作单位电话
                e.Graphics.DrawString(syjbk.DWDH1, printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1430) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 9) * zoom * zoomY)));//字符：工作单位电话填充
                e.Graphics.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 1420) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 9) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 1580) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 9) * zoom * zoomY)));//下划线：工作单位电话填充横线
                #endregion

                #region 工作单位邮编
                e.Graphics.DrawString("邮编", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1600) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 9) * zoom * zoomY)));//标题：工作单位邮编
                e.Graphics.DrawString(syjbk.DWYB1, printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1700) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 9) * zoom * zoomY)));//字符：工作单位邮编填充
                e.Graphics.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 1680) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 9) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 1820) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 9) * zoom * zoomY)));//下划线：工作单位邮编填充横线
                #endregion

                #endregion

                #region 第十一行 联系人姓名 联系人关系 联系人地址 联系人电话

                #region 联系人姓名
                e.Graphics.DrawString("联系人姓名", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 0) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 10) * zoom * zoomY)));//标题：联系人姓名
                e.Graphics.DrawString(syjbk.LXRM1, printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 0 + 210) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 10) * zoom * zoomY)));//字符：联系人姓名填充
                e.Graphics.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 200) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 10) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 380) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 10) * zoom * zoomY)));//下划线：联系人姓名填充横线
                #endregion

                #region 联系人关系
                e.Graphics.DrawString("关系", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 410) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 10) * zoom * zoomY)));//标题：联系人关系
                e.Graphics.DrawString(syjbk.LXGX1, printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 0 + 490) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 10) * zoom * zoomY)));//字符：联系人关系填充
                e.Graphics.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 480) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 10) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 650) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 10) * zoom * zoomY)));//下划线：联系人关系填充横线
                #endregion

                #region 联系人地址
                e.Graphics.DrawString("地址", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 680) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 10) * zoom * zoomY)));//标题：联系人地址
                e.Graphics.DrawString(syjbk.LXDZ1, printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 760) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 10) * zoom * zoomY)));//字符：联系人地址填充
                e.Graphics.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 750) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 10) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 1530) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 10) * zoom * zoomY)));//下划线：联系人地址填充横线
                #endregion

                #region 联系人电话
                e.Graphics.DrawString("电话", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1550) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 10) * zoom * zoomY)));//标题：联系人电话
                e.Graphics.DrawString(syjbk.LXDH1, printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1650) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 10) * zoom * zoomY)));//字符：联系人电话填充
                e.Graphics.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 1630) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 10) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 1820) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 10) * zoom * zoomY)));//下划线：联系人电话填充横线
                #endregion

                #endregion

                #region 第十二行 入院途径

                #region 入院途径
                e.Graphics.DrawString("入院途径", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 0) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 11) * zoom * zoomY)));//标题：入院途径
                e.Graphics.DrawRectangle(drawlinenPen, Convert.ToInt32((startPointX + 230) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 11) * zoom * zoomY), 15, 15);//图形：入院途径方框
                e.Graphics.DrawString("1.急症", printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 300) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 11) * zoom * zoomY)));//标题：1.急症
                e.Graphics.DrawString("2.门诊", printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 440) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 11) * zoom * zoomY)));//标题：2.门诊
                e.Graphics.DrawString("3.其他医疗机构转入", printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 580) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 11) * zoom * zoomY)));//标题：3.其他医疗机构转入
                e.Graphics.DrawString("9.其他", printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 920) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 11) * zoom * zoomY)));//标题：9.其他

                string RYTJDM = "";
                switch (syjbk.HYZK1)
                {
                    case "急症":
                        HYZKDM = "1";
                        break;
                    case "门诊":
                        HYZKDM = "2";
                        break;
                    case "其他医疗机构转入":
                        HYZKDM = "3";
                        break;
                    case "其他":
                        HYZKDM = "9";
                        break;
                    default:
                        HYZKDM = "9";
                        break;
                }
                e.Graphics.DrawString(HYZKDM, printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 230) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 11) * zoom * zoomY)));//字符：入院途径
                #endregion

                #endregion

                #region 第十三行 入院时间 入院后确诊日期

                #region 入院时间
                e.Graphics.DrawString("入院时间：", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 0) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 12) * zoom * zoomY)));//标题：入院时间
                e.Graphics.DrawString(syjbk.RYRQ1, printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 200) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 12) * zoom * zoomY)));//字符：入院时间
                //DateTimePicker DTPRYSJ = new DateTimePicker();//入院时间创建控件
                //DTPRYSJ.Location = new Point(Convert.ToInt32((startPointX + 230) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 12) * zoom * zoomY));
                //DTPRYSJ.Size = new Size(150, 60);
                //DTPRYSJ.CalendarTitleForeColor = Color.Red;
                //panel1.Controls.Add(DTPRYSJ);
                //this.Controls.Add(DTPRYSJ);
                #endregion

                #region 入院后确诊日期
                e.Graphics.DrawString("入院后确诊时间", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1000) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 12) * zoom * zoomY)));//标题：入院后确诊时间
                e.Graphics.DrawString(syjbk.QZRQ1, printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1200) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 12) * zoom * zoomY)));//字符：入院后确诊时间
                //DateTimePicker DTPQZRQ = new DateTimePicker();//入院后确诊时间创建控件
                //DTPQZRQ.Location = new Point(Convert.ToInt32((startPointX + 1430) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 12) * zoom * zoomY));
                //DTPQZRQ.Size = new Size(150, 60);
                //DTPQZRQ.CalendarTitleForeColor = Color.Red;
                //panel1.Controls.Add(DTPQZRQ);
                #endregion

                #endregion

                #region 第十四行 入院科别 病房 转科科别

                #region 入院科别
                e.Graphics.DrawString("入院科别", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 0) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 13) * zoom * zoomY)));//标题：入院科别
                e.Graphics.DrawString(syjbk.RYKS1, printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 0 + 190) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 13) * zoom * zoomY)));//字符：入院科别填充
                e.Graphics.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 170) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 13) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 400) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 13) * zoom * zoomY)));//下划线：入院科别填充横线
                #endregion

                #region 病房
                e.Graphics.DrawString("病房", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 430) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 13) * zoom * zoomY)));//标题：病房
                e.Graphics.DrawString(syjbk.RYBQ1, printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 0 + 540) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 13) * zoom * zoomY)));//字符：病房填充
                e.Graphics.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 520) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 13) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 820) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 13) * zoom * zoomY)));//下划线：病房填充横线
                #endregion

                #region 转科科别
                e.Graphics.DrawString("转科科别", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 850) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 13) * zoom * zoomY)));//标题：转科科别
                e.Graphics.DrawString(syjbk.ZKKS1, printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 0 + 1040) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 13) * zoom * zoomY)));//字符：转科科别填充
                e.Graphics.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 1020) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 13) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 1820) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 13) * zoom * zoomY)));//下划线：转科科别填充横线
                #endregion

                #endregion

                #region 第十五行 出院时间 出院科别 病房 实际住院天数

                #region 出院时间
                e.Graphics.DrawString("出院时间", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 0) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 14) * zoom * zoomY)));//标题：出院时间
                e.Graphics.DrawString(syjbk.CYRQ1, printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 0 + 190) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 14) * zoom * zoomY)));//字符：出院时间填充
                e.Graphics.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 170) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 14) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 550) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 14) * zoom * zoomY)));//下划线：出院时间填充横线
                #endregion

                #region 出院科别
                e.Graphics.DrawString("出院科别", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 570) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 14) * zoom * zoomY)));//标题：出院科别
                e.Graphics.DrawString(syjbk.CYKS1, printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 0 + 770) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 14) * zoom * zoomY)));//字符：出院科别填充
                e.Graphics.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 750) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 14) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 1060) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 14) * zoom * zoomY)));//下划线：出院科别填充横线
                #endregion

                #region 病房
                e.Graphics.DrawString("病房", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1090) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 14) * zoom * zoomY)));//标题：出院病房
                e.Graphics.DrawString(syjbk.CYBQ1, printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 0 + 1200) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 14) * zoom * zoomY)));//字符：出院病房填充
                e.Graphics.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 1180) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 14) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 1460) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 14) * zoom * zoomY)));//下划线：出院病房填充横线
                #endregion

                #region 实际住院天数
                e.Graphics.DrawString("实际住院", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1480) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 14) * zoom * zoomY)));//标题：实际住院
                e.Graphics.DrawString(Convert.ToString(syjbk.ZYTS1).ToString(), printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 0 + 1670) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 14) * zoom * zoomY)));//字符：实际住院填充
                e.Graphics.DrawString("天", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1780) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 14) * zoom * zoomY)));//标题：天
                e.Graphics.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 1650) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 14) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 1770) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 14) * zoom * zoomY)));//下划线：实际住院填充横线
                #endregion

                #endregion

                #region 第十六行 门（急）诊诊断 疾病编码

                #region 门（急）诊诊断
                e.Graphics.DrawString("门（急）诊诊断", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 0) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 15) * zoom * zoomY)));//标题：门（急）诊诊断
                e.Graphics.DrawString("心脏病", printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 0 + 280) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 15) * zoom * zoomY)));//字符：门（急）诊诊断填充
                e.Graphics.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 260) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 15) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 1200) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 15) * zoom * zoomY)));//下划线：门（急）诊诊断填充横线
                #endregion

                #region 疾病编码
                e.Graphics.DrawString("疾病编码", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1220) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 15) * zoom * zoomY)));//标题：疾病编码
                e.Graphics.DrawString("A00.I00", printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 0 + 1410) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * 15) * zoom * zoomY)));//字符：疾病编码填充
                e.Graphics.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 1390) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 15) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 1820) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 20 + titlerowpitch * 15) * zoom * zoomY)));//下划线：疾病编码填充横线
                #endregion

                #endregion

                #region 第十七行至第二十七行 出院诊断 疾病编码 入院情况 出院病情 出院诊断 疾病编码 入院情况 出院病情

                #region 第十七行标题栏
                e.Graphics.DrawString("出院诊断", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 120) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + 20 + titlerowpitch * 16) * zoom * zoomY)));//标题：左侧出院诊断
                e.Graphics.DrawString("疾病编码", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 435) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + 20 + titlerowpitch * 16) * zoom * zoomY)));//标题：左侧疾病编码诊断
                e.Graphics.DrawString("入院情况", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 615) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + 20 + titlerowpitch * 16) * zoom * zoomY)));//标题：左侧入院情况诊断
                e.Graphics.DrawString("出院情况", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 765) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + 20 + titlerowpitch * 16) * zoom * zoomY)));//标题：左侧出院情况诊断

                e.Graphics.DrawString("出院诊断", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1035) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + 20 + titlerowpitch * 16) * zoom * zoomY)));//标题：右侧出院诊断
                e.Graphics.DrawString("疾病编码", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1350) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + 20 + titlerowpitch * 16) * zoom * zoomY)));//标题：右侧疾病编码诊断
                e.Graphics.DrawString("入院情况", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1530) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + 20 + titlerowpitch * 16) * zoom * zoomY)));//标题：右侧入院情况诊断
                e.Graphics.DrawString("出院情况", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1680) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + 20 + titlerowpitch * 16) * zoom * zoomY)));//标题：右侧出院情况诊断

                #endregion

                #region 第十七行至第二十七行循环填充栏
                for (int i = 0; i < 11; i++)
                {
                    e.Graphics.DrawRectangle(drawlinenPen, Convert.ToInt32((startPointX + 0) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * (16 + i)) * zoom * zoomY), Convert.ToInt32(415 * zoom * zoomX), Convert.ToInt32(60 * zoom * zoomY));//图形：左侧出院诊断方框
                    e.Graphics.DrawRectangle(drawlinenPen, Convert.ToInt32((startPointX + 415) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * (16 + i)) * zoom * zoomY), Convert.ToInt32(200 * zoom * zoomX), Convert.ToInt32(60 * zoom * zoomY));//图形：左侧疾病编码方框
                    e.Graphics.DrawRectangle(drawlinenPen, Convert.ToInt32((startPointX + 615) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * (16 + i)) * zoom * zoomY), Convert.ToInt32(150 * zoom * zoomX), Convert.ToInt32(60 * zoom * zoomY));//图形：左侧入院情况方框
                    e.Graphics.DrawRectangle(drawlinenPen, Convert.ToInt32((startPointX + 765) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * (16 + i)) * zoom * zoomY), Convert.ToInt32(150 * zoom * zoomX), Convert.ToInt32(60 * zoom * zoomY));//图形：左侧出院情况方框

                    e.Graphics.DrawRectangle(drawlinenPen, Convert.ToInt32((startPointX + 915) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * (16 + i)) * zoom * zoomY), Convert.ToInt32(415 * zoom * zoomX), Convert.ToInt32(60 * zoom * zoomY));//图形：右侧出院诊断方框
                    e.Graphics.DrawRectangle(drawlinenPen, Convert.ToInt32((startPointX + 1330) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * (16 + i)) * zoom * zoomY), Convert.ToInt32(200 * zoom * zoomX), Convert.ToInt32(60 * zoom * zoomY));//图形：右侧疾病编码方框
                    e.Graphics.DrawRectangle(drawlinenPen, Convert.ToInt32((startPointX + 1530) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * (16 + i)) * zoom * zoomY), Convert.ToInt32(150 * zoom * zoomX), Convert.ToInt32(60 * zoom * zoomY));//图形：右侧入院情况方框
                    e.Graphics.DrawRectangle(drawlinenPen, Convert.ToInt32((startPointX + 1680) * zoom * zoomX), Convert.ToInt32((startPointY + 20 + titlerowpitch * (16 + i)) * zoom * zoomY), Convert.ToInt32(150 * zoom * zoomX), Convert.ToInt32(60 * zoom * zoomY));//图形：右侧出院情况方框
                }

                #region 注释
                //for (int i = 0; i < 9; i++)
                //{
                //    TextBox ZCCYZD = new TextBox();
                //    ZCCYZD.Name = "ZCCYZD" + Convert.ToString(i);
                //    ZCCYZD.Font = printfont;
                //    ZCCYZD.Text = "输入诊断";
                //    ZCCYZD.Location = new Point(Convert.ToInt32((startPointX + 120) * zoom * zoomX), Convert.ToInt32((startPointY + 32 + titlerowpitch * (17 + i)) * zoom * zoomY));
                //    ZCCYZD.ForeColor = Color.Green;
                //    ZCCYZD.Click += new EventHandler(lbl_Click);
                //    panel1.Controls.Add(ZCCYZD);

                //    TextBox YCCYZD = new TextBox();
                //    YCCYZD.Name = "YCCYZD" + Convert.ToString(i);
                //    YCCYZD.Font = printfont;
                //    YCCYZD.Text = "输入诊断";
                //    YCCYZD.Location = new Point(Convert.ToInt32((startPointX + 1035) * zoom * zoomX), Convert.ToInt32((startPointY + 32 + titlerowpitch * (17 + i)) * zoom * zoomY));
                //    YCCYZD.ForeColor = Color.Green;
                //    YCCYZD.Click += new EventHandler(lbl_Click);
                //    panel1.Controls.Add(YCCYZD);
                //}
                #endregion

                #endregion

                #endregion

                #region 第二十八行 入院病情 出院情况

                #region 入院病情
                e.Graphics.DrawString("入院病情", printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 0) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 27) * zoom * zoomY)));//标题：入院病情
                e.Graphics.DrawString("1.有", printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 180) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 27) * zoom * zoomY)));//标题：1.有
                e.Graphics.DrawString("2.临床确定", printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 300) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 27) * zoom * zoomY)));//标题：2.临床确定
                e.Graphics.DrawString("3.情况未明", printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 500) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 27) * zoom * zoomY)));//标题：3.情况未明
                e.Graphics.DrawString("4.无", printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 700) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 27) * zoom * zoomY)));//标题：4.无
                #endregion

                #region 出院情况
                e.Graphics.DrawString("出院情况", printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 835) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 27) * zoom * zoomY)));//标题：出院情况
                e.Graphics.DrawString("1.治愈", printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1000) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 27) * zoom * zoomY)));//标题：1.治愈
                e.Graphics.DrawString("2.好转", printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1170) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 27) * zoom * zoomY)));//标题：2.好转
                e.Graphics.DrawString("3.未愈", printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1340) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 27) * zoom * zoomY)));//标题：3.未愈
                e.Graphics.DrawString("4.死亡", printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1510) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 27) * zoom * zoomY)));//标题：4.死亡
                e.Graphics.DrawString("5.其他", printfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1680) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 27) * zoom * zoomY)));//标题：5.其他
                #endregion

                #region 第二十八行整体下划线
                e.Graphics.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 0) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 40 + titlerowpitch * 27) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 1840) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 40 + titlerowpitch * 27) * zoom * zoomY)));//下划线：第二十八行整体填充横线
                #endregion

                #endregion

                #region 第二十九行 损伤、中毒的外部原因 疾病编码

                #region 损伤、中毒的外部原因
                e.Graphics.DrawString("损伤、中毒的外部原因", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 0) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 28) * zoom * zoomY)));//标题：损伤、中毒的外部原因
                e.Graphics.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 370) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 40 + titlerowpitch * 28) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 1200) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 40 + titlerowpitch * 28) * zoom * zoomY)));//下划线：损伤、中毒的外部原因填充横线
                #endregion

                #region 疾病编码
                e.Graphics.DrawString("疾病编号", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1220) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 28) * zoom * zoomY)));//标题：疾病编号
                e.Graphics.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 1380) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 40 + titlerowpitch * 28) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 1840) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 40 + titlerowpitch * 28) * zoom * zoomY)));//下划线：疾病编号填充横线
                #endregion

                #endregion

                #region 第三十行 病理诊断 疾病编码 病理号

                #region 病理诊断
                e.Graphics.DrawString("病理诊断", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 0) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 29) * zoom * zoomY)));//标题：病理诊断
                e.Graphics.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 180) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 40 + titlerowpitch * 29) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 940) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 40 + titlerowpitch * 29) * zoom * zoomY)));//下划线：病理诊断填充横线
                #endregion

                #region 疾病编码
                e.Graphics.DrawString("疾病编码", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 950) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 29) * zoom * zoomY)));//标题：疾病编码
                e.Graphics.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 1120) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 40 + titlerowpitch * 29) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 1490) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 40 + titlerowpitch * 29) * zoom * zoomY)));//下划线：疾病编码填充横线
                #endregion

                #region 病理号
                e.Graphics.DrawString("病理号", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1500) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 29) * zoom * zoomY)));//标题：病理号
                e.Graphics.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 1630) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 40 + titlerowpitch * 29) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 1840) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 40 + titlerowpitch * 29) * zoom * zoomY)));//下划线：病理号填充横线
                #endregion

                #endregion

                #region 第三十一行 药物过敏 死亡患者尸检

                #region 药物过敏
                e.Graphics.DrawString("药物过敏", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 0) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 30) * zoom * zoomY)));//标题：药物过敏
                e.Graphics.DrawRectangle(drawlinenPen, Convert.ToInt32((startPointX + 160) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 30) * zoom * zoomY), 15, 15);//图形：药物过敏方框

                e.Graphics.DrawString("过敏药物", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 318) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 30) * zoom * zoomY)));//标题：过敏药物
                e.Graphics.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 470) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 40 + titlerowpitch * 30) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 1440) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 40 + titlerowpitch * 30) * zoom * zoomY)));//下划线：过敏药物填充横线
                #endregion

                #region 死亡患者尸检
                e.Graphics.DrawString("死亡患者尸检", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1450) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 30) * zoom * zoomY)));//标题：死亡患者尸检
                #endregion

                #endregion

                #region 第三十二行 抢救 成功

                #region 抢救
                e.Graphics.DrawString("抢救", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 0) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 31) * zoom * zoomY)));//标题：抢救
                e.Graphics.DrawRectangle(drawlinenPen, Convert.ToInt32((startPointX + 160) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 31) * zoom * zoomY), 15, 15);//图形：抢救方框
                #endregion

                #region 成功
                e.Graphics.DrawString("成功", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 318) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 31) * zoom * zoomY)));//标题：成功
                e.Graphics.DrawString("次", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 600) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 31) * zoom * zoomY)));//标题：次
                e.Graphics.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 410) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 40 + titlerowpitch * 31) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 600) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 40 + titlerowpitch * 31) * zoom * zoomY)));//下划线：抢救成功填充横线
                #endregion

                #endregion

                #region 第三十三行 血型 Rh 输血反应

                #region 血型
                e.Graphics.DrawString("血型", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 0) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 32) * zoom * zoomY)));//标题：血型
                e.Graphics.DrawRectangle(drawlinenPen, Convert.ToInt32((startPointX + 160) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 32) * zoom * zoomY), 15, 15);//图形：血型方框
                #endregion

                #region Rh
                e.Graphics.DrawString("Rh", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 700) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 32) * zoom * zoomY)));//标题：Rh
                e.Graphics.DrawRectangle(drawlinenPen, Convert.ToInt32((startPointX + 760) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 32) * zoom * zoomY), 15, 15);//图形：Rh方框
                #endregion

                #region 输血反应
                e.Graphics.DrawString("输血反应", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1350) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 32) * zoom * zoomY)));//标题：输血反应
                e.Graphics.DrawRectangle(drawlinenPen, Convert.ToInt32((startPointX + 1520) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 32) * zoom * zoomY), 15, 15);//图形：输血反应方框
                #endregion

                #endregion

                #region 第三十四行 妊娠梅毒筛查 新生儿疾病筛查

                #region 妊娠梅毒筛查
                e.Graphics.DrawString("妊娠梅毒筛查", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 0) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 33) * zoom * zoomY)));//标题：血型
                e.Graphics.DrawRectangle(drawlinenPen, Convert.ToInt32((startPointX + 250) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 33) * zoom * zoomY), 15, 15);//图形：血型方框
                #endregion

                #region 新生儿疾病筛查
                e.Graphics.DrawString("新生儿疾病筛查：", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 400) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 33) * zoom * zoomY)));//标题：新生儿疾病筛查
                e.Graphics.DrawString("CH", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 680) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 33) * zoom * zoomY)));//标题：CH
                e.Graphics.DrawString("RKU", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 900) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 33) * zoom * zoomY)));//标题：PKU
                e.Graphics.DrawString("CAH", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1120) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 33) * zoom * zoomY)));//标题：CAH
                e.Graphics.DrawString("G6PD", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1350) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 33) * zoom * zoomY)));//标题：G6PD
                e.Graphics.DrawString("听力", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1600) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 33) * zoom * zoomY)));//标题：听力

                #endregion

                #endregion

                #region 第三十五行 产后出血 新生儿性别 体重

                #region 产后出血
                e.Graphics.DrawString("产后出血", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 0) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 34) * zoom * zoomY)));//标题：产后出血
                e.Graphics.DrawRectangle(drawlinenPen, Convert.ToInt32((startPointX + 200) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 34) * zoom * zoomY), 15, 15);//图形：产后出血方框
                #endregion

                #region 新生儿性别
                e.Graphics.DrawString("新生儿性别", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 330) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 34) * zoom * zoomY)));//标题：新生儿性别
                e.Graphics.DrawRectangle(drawlinenPen, Convert.ToInt32((startPointX + 530) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 34) * zoom * zoomY), 15, 15);//图形：产后出血方框
                #endregion

                #region 体重
                e.Graphics.DrawString("体重", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 740) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 34) * zoom * zoomY)));//标题：体重
                e.Graphics.DrawString("克", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1020) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 34) * zoom * zoomY)));//标题：克
                e.Graphics.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 830) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 40 + titlerowpitch * 34) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 1010) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 40 + titlerowpitch * 34) * zoom * zoomY)));//下划线：体重填充横线
                #endregion

                #endregion

                #region 第三十六行 科主任 主任（副主任）医师 主治医师 住院医师

                #region 科主任
                e.Graphics.DrawString("科主任", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 0) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 35) * zoom * zoomY)));//标题：科主任
                e.Graphics.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 130) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 40 + titlerowpitch * 35) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 420) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 40 + titlerowpitch * 35) * zoom * zoomY)));//下划线：科主任填充横线
                #endregion

                #region 主任（副主任）医师
                e.Graphics.DrawString("主任（副主任）医师", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 430) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 35) * zoom * zoomY)));//标题：主任（副主任）医师
                e.Graphics.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 770) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 40 + titlerowpitch * 35) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 890) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 40 + titlerowpitch * 35) * zoom * zoomY)));//下划线：主任（副主任）医师填充横线
                #endregion

                #region 主治医师
                e.Graphics.DrawString("主治医师", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 900) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 35) * zoom * zoomY)));//标题：主治医师
                e.Graphics.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 1060) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 40 + titlerowpitch * 35) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 1340) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 40 + titlerowpitch * 35) * zoom * zoomY)));//下划线：主治医师填充横线
                #endregion

                #region 住院医师
                e.Graphics.DrawString("住院医师", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1350) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 35) * zoom * zoomY)));//标题：住院医师
                e.Graphics.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 1520) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 40 + titlerowpitch * 35) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 1840) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 40 + titlerowpitch * 35) * zoom * zoomY)));//下划线：住院医师填充横线
                #endregion

                #endregion

                #region 第三十七行 责任护士 进修医师 实习医师 编码员

                #region 责任护士
                e.Graphics.DrawString("责任护士", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 0) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 36) * zoom * zoomY)));//标题：责任护士
                e.Graphics.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 160) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 40 + titlerowpitch * 36) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 420) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 40 + titlerowpitch * 36) * zoom * zoomY)));//下划线：责任护士填充横线
                #endregion

                #region 进修医师
                e.Graphics.DrawString("进修医师", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 430) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 36) * zoom * zoomY)));//标题：进修医师
                e.Graphics.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 580) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 40 + titlerowpitch * 36) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 890) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 40 + titlerowpitch * 36) * zoom * zoomY)));//下划线：进修医师填充横线
                #endregion

                #region 实习医师
                e.Graphics.DrawString("实习医师", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 900) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 36) * zoom * zoomY)));//标题：实习医师
                e.Graphics.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 1060) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 40 + titlerowpitch * 36) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 1340) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 40 + titlerowpitch * 36) * zoom * zoomY)));//下划线：实习医师填充横线
                #endregion

                #region 编码员
                e.Graphics.DrawString("编码员", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1350) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 36) * zoom * zoomY)));//标题：编码员
                e.Graphics.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 1480) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 40 + titlerowpitch * 36) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 1840) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 40 + titlerowpitch * 36) * zoom * zoomY)));//下划线：编码员填充横线
                #endregion

                #endregion

                #region 第三十八行 病案质量 质控医师 质控护士 质控日期

                #region 病案质量
                e.Graphics.DrawString("病案质量", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 0) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 37) * zoom * zoomY)));//标题：病案质量
                e.Graphics.DrawRectangle(drawlinenPen, Convert.ToInt32((startPointX + 180) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 37) * zoom * zoomY), 15, 15);//图形：病案质量方框
                #endregion

                #region 质控医师
                e.Graphics.DrawString("质控医师", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 500) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 37) * zoom * zoomY)));//标题：质控医师
                e.Graphics.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 660) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 40 + titlerowpitch * 37) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 830) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 40 + titlerowpitch * 37) * zoom * zoomY)));//下划线：质控医师填充横线
                #endregion

                #region 质控护士
                e.Graphics.DrawString("质控护士", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 840) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 37) * zoom * zoomY)));//标题：质控护士
                e.Graphics.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((startPointX + 1000) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 40 + titlerowpitch * 37) * zoom * zoomY)), new PointF(Convert.ToInt32((startPointX + 1270) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + 40 + titlerowpitch * 37) * zoom * zoomY)));//下划线：质控护士填充横线
                #endregion

                #region 质控日期
                e.Graphics.DrawString("质控日期", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((startPointX + 1280) * zoom * zoomX), Convert.ToInt32((startPointY + 40 + titlerowpitch * 37) * zoom * zoomY)));//标题：质控日期
                #endregion

                #endregion

                e.HasMorePages = true;
                page = 2;
                return;

            }

            //换页
            bstratPointX = 60;
            bstratPointY = 0;
            if (page != 1)
            {

                //换页
                #region 第三十九行至第四十五行 手术操作名称及编码 手术及操作日期 手术级别 手术及操作医师 切合愈合等级 麻醉方式 麻醉医师

                #region 第三十九，四十行行标题栏
                e.Graphics.DrawString("手术操作名称及编码", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 80) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 0.5) * zoom * zoomY)));//标题：手术操作名称及编码
                e.Graphics.DrawString("手术及操", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 520) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 0) * zoom * zoomY)));//标题：手术及操
                e.Graphics.DrawString("作日期", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 540) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 0.6) * zoom * zoomY)));//标题：作日期
                e.Graphics.DrawString("手术", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 730) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 0) * zoom * zoomY)));//标题：手术
                e.Graphics.DrawString("级别", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 730) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 0.6) * zoom * zoomY)));//标题：级别
                e.Graphics.DrawString("手术及操作医师", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 950) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 0) * zoom * zoomY)));//标题：第三十九行手术及操作医师
                e.Graphics.DrawString("术者", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 870) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 0.85) * zoom * zoomY)));//标题：第四十行术者
                e.Graphics.DrawString("I助", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 1030) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 0.85) * zoom * zoomY)));//标题：第四十行一助
                e.Graphics.DrawString("II助", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 1170) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 0.85) * zoom * zoomY)));//标题：第四十行二助
                e.Graphics.DrawString("切口愈", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 1310) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 0) * zoom * zoomY)));//标题：切口愈
                e.Graphics.DrawString("合等级", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 1310) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 0.6) * zoom * zoomY)));//标题：合等级
                e.Graphics.DrawString("麻醉方式", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 1470) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 0.5) * zoom * zoomY)));//标题：麻醉方式
                e.Graphics.DrawString("麻醉", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 1680) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 0) * zoom * zoomY)));//标题：麻醉
                e.Graphics.DrawString("医师", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 1680) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 0.6) * zoom * zoomY)));//标题：医师
                #endregion

                #region 标题栏表格
                e.Graphics.DrawRectangle(drawlinenPen, Convert.ToInt32((bstratPointX + 0) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + titlerowpitch * 0) * zoom * zoomY), Convert.ToInt32(500 * zoom * zoomX), Convert.ToInt32(120 * zoom * zoomY));//图形：手术操作名称及编码
                e.Graphics.DrawRectangle(drawlinenPen, Convert.ToInt32((bstratPointX + 500) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + titlerowpitch * 0) * zoom * zoomY), Convert.ToInt32(200 * zoom * zoomX), Convert.ToInt32(120 * zoom * zoomY));//图形：手术及操作日期
                e.Graphics.DrawRectangle(drawlinenPen, Convert.ToInt32((bstratPointX + 700) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + titlerowpitch * 0) * zoom * zoomY), Convert.ToInt32(150 * zoom * zoomX), Convert.ToInt32(120 * zoom * zoomY));//图形：手术级别
                e.Graphics.DrawRectangle(drawlinenPen, Convert.ToInt32((bstratPointX + 1300) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + titlerowpitch * 0) * zoom * zoomY), Convert.ToInt32(150 * zoom * zoomX), Convert.ToInt32(120 * zoom * zoomY));//图形：切口愈合等级
                e.Graphics.DrawRectangle(drawlinenPen, Convert.ToInt32((bstratPointX + 1450) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + titlerowpitch * 0) * zoom * zoomY), Convert.ToInt32(200 * zoom * zoomX), Convert.ToInt32(120 * zoom * zoomY));//图形：麻醉方式
                e.Graphics.DrawRectangle(drawlinenPen, Convert.ToInt32((bstratPointX + 1650) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + titlerowpitch * 0) * zoom * zoomY), Convert.ToInt32(170 * zoom * zoomX), Convert.ToInt32(120 * zoom * zoomY));//图形：麻醉医师

                e.Graphics.DrawRectangle(drawlinenPen, Convert.ToInt32((bstratPointX + 850) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + titlerowpitch * 0) * zoom * zoomY), Convert.ToInt32(450 * zoom * zoomX), Convert.ToInt32(60 * zoom * zoomY));//图形：手术及词作医师
                e.Graphics.DrawRectangle(drawlinenPen, Convert.ToInt32((bstratPointX + 850) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + titlerowpitch * 1) * zoom * zoomY), Convert.ToInt32(150 * zoom * zoomX), Convert.ToInt32(60 * zoom * zoomY));//图形：术者
                e.Graphics.DrawRectangle(drawlinenPen, Convert.ToInt32((bstratPointX + 1000) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + titlerowpitch * 1) * zoom * zoomY), Convert.ToInt32(150 * zoom * zoomX), Convert.ToInt32(60 * zoom * zoomY));//图形：I助
                e.Graphics.DrawRectangle(drawlinenPen, Convert.ToInt32((bstratPointX + 1150) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + titlerowpitch * 1) * zoom * zoomY), Convert.ToInt32(150 * zoom * zoomX), Convert.ToInt32(60 * zoom * zoomY));//图形：II助

                #endregion

                #region 第四十一行至第四十五行循环填充栏
                for (int i = 0; i < 5; i++)
                {
                    e.Graphics.DrawRectangle(drawlinenPen, Convert.ToInt32((bstratPointX + 0) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + titlerowpitch * (2 + i)) * zoom * zoomY), Convert.ToInt32(500 * zoom * zoomX), Convert.ToInt32(60 * zoom * zoomY));//图形：手术操作名称及编码
                    e.Graphics.DrawRectangle(drawlinenPen, Convert.ToInt32((bstratPointX + 500) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + titlerowpitch * (2 + i)) * zoom * zoomY), Convert.ToInt32(200 * zoom * zoomX), Convert.ToInt32(60 * zoom * zoomY));//图形：手术及操作日期
                    e.Graphics.DrawRectangle(drawlinenPen, Convert.ToInt32((bstratPointX + 700) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + titlerowpitch * (2 + i)) * zoom * zoomY), Convert.ToInt32(150 * zoom * zoomX), Convert.ToInt32(60 * zoom * zoomY));//图形：手术级别
                    e.Graphics.DrawRectangle(drawlinenPen, Convert.ToInt32((bstratPointX + 850) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + titlerowpitch * (2 + i)) * zoom * zoomY), Convert.ToInt32(150 * zoom * zoomX), Convert.ToInt32(60 * zoom * zoomY));//图形：术者
                    e.Graphics.DrawRectangle(drawlinenPen, Convert.ToInt32((bstratPointX + 1000) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + titlerowpitch * (2 + i)) * zoom * zoomY), Convert.ToInt32(150 * zoom * zoomX), Convert.ToInt32(60 * zoom * zoomY));//图形：I助
                    e.Graphics.DrawRectangle(drawlinenPen, Convert.ToInt32((bstratPointX + 1150) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + titlerowpitch * (2 + i)) * zoom * zoomY), Convert.ToInt32(150 * zoom * zoomX), Convert.ToInt32(60 * zoom * zoomY));//图形：II助
                    e.Graphics.DrawRectangle(drawlinenPen, Convert.ToInt32((bstratPointX + 1300) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + titlerowpitch * (2 + i)) * zoom * zoomY), Convert.ToInt32(150 * zoom * zoomX), Convert.ToInt32(60 * zoom * zoomY));//图形：切口愈合等级
                    e.Graphics.DrawRectangle(drawlinenPen, Convert.ToInt32((bstratPointX + 1450) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + titlerowpitch * (2 + i)) * zoom * zoomY), Convert.ToInt32(200 * zoom * zoomX), Convert.ToInt32(60 * zoom * zoomY));//图形：麻醉方式
                    e.Graphics.DrawRectangle(drawlinenPen, Convert.ToInt32((bstratPointX + 1650) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + titlerowpitch * (2 + i)) * zoom * zoomY), Convert.ToInt32(170 * zoom * zoomX), Convert.ToInt32(60 * zoom * zoomY));//图形：麻醉医师
                }
                #endregion

                #endregion

                #region 第四十六行 离院方式 医嘱离院 医嘱转院 拟接收医疗机构名称

                #region 离院方式
                e.Graphics.DrawString("离院方式", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 0) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 7) * zoom * zoomY)));//标题：离院方式
                e.Graphics.DrawRectangle(drawlinenPen, Convert.ToInt32((bstratPointX + 160) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + titlerowpitch * 7) * zoom * zoomY), 15, 15);//图形：离院方式方框
                #endregion

                #region 医嘱离院

                #endregion

                #region 医嘱转院

                #endregion

                #region 拟接收医疗机构名称
                e.Graphics.DrawString("拟接收医疗机构名称", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 640) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 7) * zoom * zoomY)));//标题：拟接收医疗机构名称
                e.Graphics.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((bstratPointX + 980) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 7) * zoom * zoomY)), new PointF(Convert.ToInt32((bstratPointX + 1840) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 7) * zoom * zoomY)));//下划线：拟接收医疗机构名称填充横线
                #endregion

                #endregion

                #region 第四十七行 医嘱转社区卫生服务机构/乡镇卫生院 拟接收医疗机构名称

                #region 医嘱转社区卫生服务机构/乡镇卫生院

                #endregion

                #region 拟接收医疗机构名称
                e.Graphics.DrawString("拟接收医疗机构名称", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 660) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 8) * zoom * zoomY)));//标题：拟接收医疗机构名称
                e.Graphics.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((bstratPointX + 1000) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 8) * zoom * zoomY)), new PointF(Convert.ToInt32((bstratPointX + 1840) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 8) * zoom * zoomY)));//下划线：拟接收医疗机构名称填充横线
                #endregion

                #endregion

                #region 第四十八行 非医嘱离院 死亡 其他

                #region 非医嘱离院

                #endregion

                #region 死亡

                #endregion

                #region 其他

                #endregion

                #endregion

                #region 第四十九行 是否有出院31天再住院计划

                #region 是否有出院31天再住院计划
                e.Graphics.DrawString("是否有出院31天再住院计划", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 0) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 10) * zoom * zoomY)));//标题：是否有出院31天再住院计划
                #endregion

                #region 目的
                e.Graphics.DrawString("目的", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 650) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 10) * zoom * zoomY)));//标题：目的
                e.Graphics.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((bstratPointX + 740) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 10) * zoom * zoomY)), new PointF(Convert.ToInt32((bstratPointX + 1840) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 10) * zoom * zoomY)));//下划线：目的填充横线
                #endregion

                #endregion

                #region 第五十行 颅脑损伤患者昏迷时间

                #region 颅脑损伤患者昏迷时间
                e.Graphics.DrawString("颅脑损伤患者昏迷时间", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 0) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 11) * zoom * zoomY)));//标题：颅脑损伤患者昏迷时间
                e.Graphics.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((bstratPointX + 380) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 11) * zoom * zoomY)), new PointF(Convert.ToInt32((bstratPointX + 1840) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 11) * zoom * zoomY)));//下划线：颅脑损伤患者昏迷时间填充横线
                #endregion

                #endregion

                #region 第五十一行 （凡可由……住院病案

                #region （凡可由……住院病案
                e.Graphics.DrawString("（凡可由医院信息系统提供住院费用清单并包含以下所有内容的，应将清单打印作为附件，住院病案", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 0) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 12) * zoom * zoomY)));//标题：（凡可由……住院病案
                #endregion

                #endregion

                #region 第五十二行 首页中……所有空格）

                #region 首页中……所有空格）
                e.Graphics.DrawString("首页中可不填写“住院费用”一栏的所有空格。）", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 0) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 13) * zoom * zoomY)));//标题：首页中……所有空格）
                #endregion

                #endregion

                #region 第五十三行 住院费用（元） 总费用 自付金额 自费金额 其他支付

                #region 住院费用（元）
                e.Graphics.DrawString("住院费用（元）：", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 0) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 14) * zoom * zoomY)));//标题：住院费用（元）
                #endregion

                #region 总费用
                e.Graphics.DrawString("总费用", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 300) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 14) * zoom * zoomY)));//标题：总费用
                e.Graphics.DrawString(syjbk.ZFY1, printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 420) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 14) * zoom * zoomY)));//字符：总费用填充
                e.Graphics.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((bstratPointX + 420) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 14) * zoom * zoomY)), new PointF(Convert.ToInt32((bstratPointX + 600) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 14) * zoom * zoomY)));//下划线：总费用填充横线
                #endregion

                #region 自付金额
                e.Graphics.DrawString("（自付金额：", printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 620) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 14) * zoom * zoomY)));//标题：自付金额
                e.Graphics.DrawString(syjbk.ZFJE1, printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 820) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 14) * zoom * zoomY)));//字符：自付金额填充
                e.Graphics.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((bstratPointX + 820) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 14) * zoom * zoomY)), new PointF(Convert.ToInt32((bstratPointX + 1000) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 14) * zoom * zoomY)));//下划线：自付金额填充横线
                #endregion

                #region 自费金额
                e.Graphics.DrawString("自费金额：", printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 1010) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 14) * zoom * zoomY)));//标题：自费金额
                e.Graphics.DrawString(syjbk.ZFEIJE1, printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 1200) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 14) * zoom * zoomY)));//字符：自费金额填充
                e.Graphics.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((bstratPointX + 1180) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 14) * zoom * zoomY)), new PointF(Convert.ToInt32((bstratPointX + 1360) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 14) * zoom * zoomY)));//下划线：自费金额填充横线
                #endregion

                #region 其他支付
                e.Graphics.DrawString("其他支付：", printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 1380) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 14) * zoom * zoomY)));//标题：自付金额
                e.Graphics.DrawString(syjbk.QTZF1, printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 1570) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 14) * zoom * zoomY)));//字符：自付金额填充
                e.Graphics.DrawString("）", printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 1760) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 14) * zoom * zoomY)));//标题：）
                e.Graphics.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((bstratPointX + 1560) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 14) * zoom * zoomY)), new PointF(Convert.ToInt32((bstratPointX + 1740) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 14) * zoom * zoomY)));//下划线：自付金额填充横线
                #endregion

                #endregion

                #region 第五十四行 综合医疗服务类 一般医疗服务费 一般治疗操作费 护理费

                #region 综合医疗服务类
                e.Graphics.DrawString("1.综合医疗服务类：", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 0) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 15) * zoom * zoomY)));//标题：综合医疗服务类
                #endregion

                #region 一般医疗服务费
                e.Graphics.DrawString("（1）一般医疗服务费：", printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 350) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 15) * zoom * zoomY)));//标题：一般医疗服务费
                e.Graphics.DrawString(syjbk.YBYLFWF1, printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 710) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 15) * zoom * zoomY)));//字符：一般医疗服务费填充
                e.Graphics.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((bstratPointX + 700) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 15) * zoom * zoomY)), new PointF(Convert.ToInt32((bstratPointX + 900) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 15) * zoom * zoomY)));//下划线：一般医疗服务费填充横线
                #endregion

                #region 一般治疗操作费
                e.Graphics.DrawString("（2）一般治疗操作费：", printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 920) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 15) * zoom * zoomY)));//标题：一般治疗操作费
                e.Graphics.DrawString(syjbk.YBZLCZF1, printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 1280) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 15) * zoom * zoomY)));//字符：一般治疗操作费填充
                e.Graphics.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((bstratPointX + 1270) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 15) * zoom * zoomY)), new PointF(Convert.ToInt32((bstratPointX + 1470) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 15) * zoom * zoomY)));//下划线：一般治疗操作费填充横线
                #endregion

                #region 护理费
                e.Graphics.DrawString("（3）护理费：", printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 1440) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 15) * zoom * zoomY)));//标题：护理费
                e.Graphics.DrawString(syjbk.HLF1, printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 1660) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 15) * zoom * zoomY)));//字符：护理费填充
                e.Graphics.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((bstratPointX + 1650) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 15) * zoom * zoomY)), new PointF(Convert.ToInt32((bstratPointX + 1840) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 15) * zoom * zoomY)));//下划线：护理费填充横线
                #endregion

                #endregion

                #region 第五十五行 其他费用

                #region 其他费用
                e.Graphics.DrawString("（4）其他费用：", printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 350) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 16) * zoom * zoomY)));//标题：其他费用
                e.Graphics.DrawString(syjbk.QTF1, printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 630) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 16) * zoom * zoomY)));//字符：其他费用填充
                e.Graphics.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((bstratPointX + 620) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 16) * zoom * zoomY)), new PointF(Convert.ToInt32((bstratPointX + 820) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 16) * zoom * zoomY)));//下划线：其他费用填充横线
                #endregion

                #endregion

                #region 第五十六行 诊断类 病理诊断费 实验室诊断费 影像学诊断费

                #region 诊断类
                e.Graphics.DrawString("2.诊断类：", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 0) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 17) * zoom * zoomY)));//标题：诊断类
                #endregion

                #region 病理诊断费
                e.Graphics.DrawString("（5）病理诊断费：", printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 350) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 17) * zoom * zoomY)));//标题：病理诊断费
                e.Graphics.DrawString(syjbk.BLZDF1, printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 650) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 17) * zoom * zoomY)));//字符：手病理诊断费填充
                e.Graphics.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((bstratPointX + 640) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 17) * zoom * zoomY)), new PointF(Convert.ToInt32((bstratPointX + 840) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 17) * zoom * zoomY)));//下划线：病理诊断费填充横线
                #endregion

                #region 实验室诊断费
                e.Graphics.DrawString("（6）实验室诊断费：", printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 820) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 17) * zoom * zoomY)));//标题：实验室诊断费
                e.Graphics.DrawString(syjbk.SYSZDF1, printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 1140) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 17) * zoom * zoomY)));//字符：实验室诊断费填充
                e.Graphics.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((bstratPointX + 1130) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 17) * zoom * zoomY)), new PointF(Convert.ToInt32((bstratPointX + 1330) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 17) * zoom * zoomY)));//下划线：实验室诊断费填充横线
                #endregion

                #region 影像学诊断费
                e.Graphics.DrawString("（7）影像学诊断费：", printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 1350) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 17) * zoom * zoomY)));//标题：影像学诊断费
                e.Graphics.DrawString(syjbk.YXXZDF1, printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 1670) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 17) * zoom * zoomY)));//字符：影像学诊断费填充
                e.Graphics.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((bstratPointX + 1660) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 17) * zoom * zoomY)), new PointF(Convert.ToInt32((bstratPointX + 1840) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 17) * zoom * zoomY)));//下划线：影像学诊断费填充横线
                #endregion

                #endregion

                #region 第五十七行 临床诊断项目费

                #region 临床诊断项目费
                e.Graphics.DrawString("（8）临床诊断项目费：", printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 350) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 18) * zoom * zoomY)));//标题：临床诊断项目费
                e.Graphics.DrawString(syjbk.LCZDXMF1, printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 720) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 18) * zoom * zoomY)));//字符：临床诊断项目费填充
                e.Graphics.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((bstratPointX + 710) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 18) * zoom * zoomY)), new PointF(Convert.ToInt32((bstratPointX + 910) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 18) * zoom * zoomY)));//下划线：临床诊断项目费填充横线
                #endregion

                #endregion

                #region 第五十八行 治疗类 非手术治疗项目费 临床物理治疗费

                #region 治疗类
                e.Graphics.DrawString("3.治疗类：", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 0) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 19) * zoom * zoomY)));//标题：治疗类
                #endregion

                #region 非手术治疗项目费
                e.Graphics.DrawString("（9）非手术治疗项目费：", printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 350) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 19) * zoom * zoomY)));//标题：非手术治疗项目费
                e.Graphics.DrawString(syjbk.FSSZLXMF1, printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 740) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 19) * zoom * zoomY)));//字符：非手术治疗项目费填充
                e.Graphics.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((bstratPointX + 730) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 19) * zoom * zoomY)), new PointF(Convert.ToInt32((bstratPointX + 930) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 19) * zoom * zoomY)));//下划线：非手术治疗项目费填充横线
                #endregion

                #region 临床物理治疗费
                e.Graphics.DrawString("（临床物理治疗费：", printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 950) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 19) * zoom * zoomY)));//标题：临床物理治疗费
                e.Graphics.DrawString(syjbk.LCWLZLF1, printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 1260) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 19) * zoom * zoomY)));//字符：临床物理治疗费填充
                e.Graphics.DrawString("）", printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 1450) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 19) * zoom * zoomY)));//标题）
                e.Graphics.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((bstratPointX + 1250) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 19) * zoom * zoomY)), new PointF(Convert.ToInt32((bstratPointX + 1450) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 19) * zoom * zoomY)));//下划线：临床物理治疗费填充横线
                #endregion

                #endregion

                #region 第五十九行 手术治疗费 麻醉费 手术费

                #region 手术治疗费
                e.Graphics.DrawString("（10）手术治疗费：", printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 350) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 20) * zoom * zoomY)));//标题：手术治疗费
                e.Graphics.DrawString(syjbk.SSZLF1, printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 660) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 20) * zoom * zoomY)));//字符：手术治疗费填充
                e.Graphics.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((bstratPointX + 650) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 20) * zoom * zoomY)), new PointF(Convert.ToInt32((bstratPointX + 850) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 20) * zoom * zoomY)));//下划线：手术治疗费填充横线
                #endregion

                #region 麻醉费
                e.Graphics.DrawString("（麻醉费：", printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 850) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 20) * zoom * zoomY)));//标题：麻醉费
                e.Graphics.DrawString(syjbk.MZF1, printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 1020) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 20) * zoom * zoomY)));//字符：麻醉费填充
                e.Graphics.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((bstratPointX + 1010) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 20) * zoom * zoomY)), new PointF(Convert.ToInt32((bstratPointX + 1210) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 20) * zoom * zoomY)));//下划线：麻醉费填充横线
                #endregion

                #region 手术费
                e.Graphics.DrawString("手术费：", printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 1220) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 20) * zoom * zoomY)));//标题：手术费
                e.Graphics.DrawString(syjbk.SSF1, printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 1370) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 20) * zoom * zoomY)));//字符：手术费填充
                e.Graphics.DrawString("）", printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 1560) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 20) * zoom * zoomY)));//标题：）
                e.Graphics.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((bstratPointX + 1360) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 20) * zoom * zoomY)), new PointF(Convert.ToInt32((bstratPointX + 1560) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 20) * zoom * zoomY)));//下划线：手术费填充横线
                #endregion

                #endregion

                #region 第六十行 康复类 康复费

                #region 康复类
                e.Graphics.DrawString("4.康复类：", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 0) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 21) * zoom * zoomY)));//标题：康复类
                #endregion

                #region 康复费
                e.Graphics.DrawString("（11）康复费：", printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 350) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 21) * zoom * zoomY)));//标题：康复费
                e.Graphics.DrawString(syjbk.KFF1, printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 610) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 21) * zoom * zoomY)));//字符：康复费填充
                e.Graphics.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((bstratPointX + 600) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 21) * zoom * zoomY)), new PointF(Convert.ToInt32((bstratPointX + 800) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 21) * zoom * zoomY)));//下划线：康复费填充横线
                #endregion

                #endregion

                #region 第六十一行 中医类 中医治疗费

                #region 中医类
                e.Graphics.DrawString("5.中医类：", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 0) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 22) * zoom * zoomY)));//标题：中医类
                #endregion

                #region 中医治疗费
                e.Graphics.DrawString("（12）中医治疗费：", printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 350) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 22) * zoom * zoomY)));//标题：中医治疗费
                e.Graphics.DrawString(syjbk.ZYZLF1, printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 650) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 22) * zoom * zoomY)));//字符：中医治疗费填充
                e.Graphics.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((bstratPointX + 640) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 22) * zoom * zoomY)), new PointF(Convert.ToInt32((bstratPointX + 840) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 22) * zoom * zoomY)));//下划线：中医治疗费填充横线
                #endregion

                #endregion

                #region 第六十二行 西药类 西药费 抗菌药物费用

                #region 西药类
                e.Graphics.DrawString("6.西药类：", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 0) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 23) * zoom * zoomY)));//标题：西药类
                #endregion

                #region 西药费
                e.Graphics.DrawString("（13）西药费：", printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 350) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 23) * zoom * zoomY)));//标题：西药费
                e.Graphics.DrawString(syjbk.XYF1, printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 610) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 23) * zoom * zoomY)));//字符：西药费填充
                e.Graphics.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((bstratPointX + 600) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 23) * zoom * zoomY)), new PointF(Convert.ToInt32((bstratPointX + 800) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 23) * zoom * zoomY)));//下划线：西药费填充横线
                #endregion

                #region 抗菌药物费用
                e.Graphics.DrawString("（抗菌药物费用：", printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 830) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 23) * zoom * zoomY)));//标题：抗菌药物费用
                e.Graphics.DrawString(syjbk.KJYWF1, printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 1110) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 23) * zoom * zoomY)));//字符：抗菌药物费用填充
                e.Graphics.DrawString("）", printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 1300) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 23) * zoom * zoomY)));//标题：）
                e.Graphics.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((bstratPointX + 1100) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 23) * zoom * zoomY)), new PointF(Convert.ToInt32((bstratPointX + 1300) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 23) * zoom * zoomY)));//下划线：抗菌药物费用填充横线
                #endregion

                #endregion

                #region 第六十三行 中药类 中成药费 中草药费

                #region 中药类
                e.Graphics.DrawString("7.中药类：", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 0) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 24) * zoom * zoomY)));//标题：中药类
                #endregion

                #region 中成药费
                e.Graphics.DrawString("（14）中成药费：", printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 350) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 24) * zoom * zoomY)));//标题：中成药费
                e.Graphics.DrawString(syjbk.CHENGYF1, printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 630) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 24) * zoom * zoomY)));//字符：中成药费填充
                e.Graphics.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((bstratPointX + 620) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 24) * zoom * zoomY)), new PointF(Convert.ToInt32((bstratPointX + 820) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 24) * zoom * zoomY)));//下划线：中成药费填充横线
                #endregion

                #region 中草药费
                e.Graphics.DrawString("（15）中草药费：", printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 830) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 24) * zoom * zoomY)));//标题：中草药费
                e.Graphics.DrawString(syjbk.CAOYF1, printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 1110) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 24) * zoom * zoomY)));//字符：中草药费填充
                e.Graphics.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((bstratPointX + 1100) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 24) * zoom * zoomY)), new PointF(Convert.ToInt32((bstratPointX + 1300) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 24) * zoom * zoomY)));//下划线：中草药费填充横线
                #endregion

                #endregion

                #region 第六十四行 血液和血液制品类 血费 白蛋白类制品费 球蛋白类制品费

                #region 血液和血液制品类
                e.Graphics.DrawString("8.血液和血液制品类：", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 0) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 25) * zoom * zoomY)));//标题：血液和血液制品类
                #endregion

                #region 血费
                e.Graphics.DrawString("（16）血费：", printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 350) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 25) * zoom * zoomY)));//标题：血费
                e.Graphics.DrawString(syjbk.XYF1, printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 550) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 25) * zoom * zoomY)));//字符：血费填充
                e.Graphics.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((bstratPointX + 540) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 25) * zoom * zoomY)), new PointF(Convert.ToInt32((bstratPointX + 720) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 25) * zoom * zoomY)));//下划线：血费填充横线
                #endregion

                #region 白蛋白类制品费
                e.Graphics.DrawString("（17）白蛋白类制品费：", printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 720) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 25) * zoom * zoomY)));//标题：白蛋白类制品费
                e.Graphics.DrawString(syjbk.BDBLZPF1, printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 1090) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 25) * zoom * zoomY)));//字符：白蛋白类制品费填充
                e.Graphics.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((bstratPointX + 1070) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 25) * zoom * zoomY)), new PointF(Convert.ToInt32((bstratPointX + 1270) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 25) * zoom * zoomY)));//下划线：白蛋白类制品费填充横线
                #endregion

                #region 球蛋白类制品费
                e.Graphics.DrawString("（18）球蛋白类制品费：", printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 1270) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 25) * zoom * zoomY)));//标题：球蛋白类制品费
                e.Graphics.DrawString(syjbk.QDBLZPF1, printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 1640) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 25) * zoom * zoomY)));//字符：球蛋白类制品费填充
                e.Graphics.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((bstratPointX + 1620) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 25) * zoom * zoomY)), new PointF(Convert.ToInt32((bstratPointX + 1840) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 25) * zoom * zoomY)));//下划线：球蛋白类制品费填充横线
                #endregion

                #endregion

                #region 第六十五行 凝血因子类制品费 细胞因子类制品费

                #region 凝血因子类制品费
                e.Graphics.DrawString("（19）凝血因子类制品费：", printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 350) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 26) * zoom * zoomY)));//标题：凝血因子类制品费
                e.Graphics.DrawString(syjbk.NXYZLZPF1, printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 760) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 26) * zoom * zoomY)));//字符：凝血因子类制品费填充
                e.Graphics.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((bstratPointX + 750) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 26) * zoom * zoomY)), new PointF(Convert.ToInt32((bstratPointX + 950) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 26) * zoom * zoomY)));//下划线：凝血因子类制品费填充横线
                #endregion

                #region 细胞因子类制品费
                e.Graphics.DrawString("（20）细胞因子类制品费：", printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 950) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 26) * zoom * zoomY)));//标题：细胞因子类制品费
                e.Graphics.DrawString(syjbk.XBYZLZPF1, printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 1360) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 26) * zoom * zoomY)));//字符：细胞因子类制品费填充
                e.Graphics.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((bstratPointX + 1340) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 26) * zoom * zoomY)), new PointF(Convert.ToInt32((bstratPointX + 1540) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 26) * zoom * zoomY)));//下划线：细胞因子类制品费填充横线
                #endregion

                #endregion

                #region 第六十六行 耗材类 检查用一次性医用材料费 治疗用一次性医用材料费

                #region 耗材类
                e.Graphics.DrawString("9.耗材类：", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 0) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 27) * zoom * zoomY)));//标题：耗材类
                #endregion

                #region 检查用一次性医用材料费
                e.Graphics.DrawString("（21）检查用一次性医用材料费：", printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 350) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 27) * zoom * zoomY)));//标题：检查用一次性医用材料费
                e.Graphics.DrawString(syjbk.JCYYCXCLF1, printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 860) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 27) * zoom * zoomY)));//字符：检查用一次性医用材料费填充
                e.Graphics.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((bstratPointX + 850) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 27) * zoom * zoomY)), new PointF(Convert.ToInt32((bstratPointX + 1050) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 27) * zoom * zoomY)));//下划线：检查用一次性医用材料费填充横线
                #endregion

                #region 治疗用一次性医用材料费
                e.Graphics.DrawString("（22）治疗用一次性医用材料费：", printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 1070) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 27) * zoom * zoomY)));//标题：治疗用一次性医用材料费
                e.Graphics.DrawString(syjbk.ZLYYCXCLF1, printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 1580) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 27) * zoom * zoomY)));//字符：治疗用一次性医用材料费填充
                e.Graphics.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((bstratPointX + 1570) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 27) * zoom * zoomY)), new PointF(Convert.ToInt32((bstratPointX + 1770) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 27) * zoom * zoomY)));//下划线：治疗用一次性医用材料费填充横线
                #endregion

                #endregion

                #region 第六十七行 手术用一次性医用材料费

                #region 手术用一次性医用材料费
                e.Graphics.DrawString("（23）手术用一次性医用材料费：", printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 350) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 28) * zoom * zoomY)));//标题：手术用一次性医用材料费
                e.Graphics.DrawString(syjbk.SSYYCXCLF1, printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 860) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 28) * zoom * zoomY)));//字符：手术用一次性医用材料费填充
                e.Graphics.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((bstratPointX + 850) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 28) * zoom * zoomY)), new PointF(Convert.ToInt32((bstratPointX + 1050) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 28) * zoom * zoomY)));//下划线：手术用一次性医用材料费填充横线
                #endregion

                #endregion

                #region 第六十八行 其他类 其他费

                #region 其他类
                e.Graphics.DrawString("10.其他类：", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 0) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 29) * zoom * zoomY)));//标题：其他类
                #endregion

                #region 其他费
                e.Graphics.DrawString("（24）其他费：", printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 350) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 29) * zoom * zoomY)));//标题：其他费
                e.Graphics.DrawString(syjbk.QTF2, printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 580) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 29) * zoom * zoomY)));//字符：其他费填充
                e.Graphics.DrawLine(drawlinenPen, new PointF(Convert.ToInt32((bstratPointX + 570) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 29) * zoom * zoomY)), new PointF(Convert.ToInt32((bstratPointX + 750) * zoom * zoomX), Convert.ToInt32((bstratPointY + 40 + 40 + titlerowpitch * 29) * zoom * zoomY)));//下划线：其他费填充横线
                #endregion

                #endregion

                #region 第六十九行 说明：……医疗

                #region 说明：……医疗
                e.Graphics.DrawString("说明：医疗付费方式", printBoldfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 0) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 30) * zoom * zoomY)));//标题：说明：……医疗
                e.Graphics.DrawString("1.城镇职工基本医疗保险 2.城镇居民基本医疗保险 3.新型农村合作医疗", printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 380) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 30) * zoom * zoomY)));//标题：说明：……医疗
                #endregion

                #endregion

                #region 第七十行 贫困救助……其他

                #region 贫困救助……其他
                e.Graphics.DrawString("4.贫困救助 5.商业医疗保险 6.全公费 7.全自费 8.其他社会保险 9.其他", printfont, brushCellFont, new PointF(Convert.ToInt32((bstratPointX + 0) * zoom * zoomX), Convert.ToInt32((bstratPointY + 20 + 20 + titlerowpitch * 31) * zoom * zoomY)));//标题：贫困救助……其他
                #endregion

                #endregion

                page = 1;
                bstratPointX = 60;
                bstratPointY = 2360;
            }
            #endregion

        }

        private void SetFontForPrint()
        {
            previewTitlefont = printTitlefont;
            previewCommentfont = printCommentfont;
            previewfont = printfont;
            //HisService.executeHisService(
        }

        private void SetMargin()
        {
            printDocument.DefaultPageSettings.Margins.Left = 40;
            printDocument.DefaultPageSettings.Margins.Right = 40;
            printDocument.DefaultPageSettings.Margins.Top = 40;
            printDocument.DefaultPageSettings.Margins.Bottom = 40;
        }
    }
}
